Skip to content

Commit 9e7fc00

Browse files
committed
fixed not being able to expose unless there is a name from not working
1 parent 59ed338 commit 9e7fc00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gui/acquisitionClasses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,9 @@ def onExpose(self, event):
425425
dialog.ShowModal()
426426
dialog.Destroy()
427427

428-
print("NAME:", self.nameToSend)
428+
print("NAME:", repr(self.nameToSend))
429429

430-
if self.nameToSend is "":
430+
if str(self.nameToSend) == "":
431431
dialog = wx.MessageDialog(None, "No name was given...will not expose", "",
432432
wx.OK | wx.ICON_ERROR)
433433
dialog.ShowModal()

0 commit comments

Comments
 (0)