Skip to content

Commit

Permalink
wxGUI/tplot: fix x, y coordinates validation (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Jan 13, 2021
1 parent aeff9f4 commit de6d513
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gui/wxpython/tplot/frame.py
Expand Up @@ -909,8 +909,12 @@ def OnRedraw(self, event=None):
coordx, coordy = self.coorval.GetValue().split(',')
coordx, coordy = float(coordx), float(coordy)
except (ValueError, AttributeError):
GMessage(message=_("Incorrect coordinates format, should "
"be: x,y"), parent=self)
GError(
parent=self,
message=_("Incorrect coordinates format, should be: x,y"),
showTraceback=False,
)
return
coors = [coordx, coordy]
if coors:
try:
Expand Down

0 comments on commit de6d513

Please sign in to comment.