Browse Source

Ensure OnDropFiles function matches interface

Fixes the following error printed to the console after dropping a file onto a text box: 
TypeError: invalid result from FileDrop.OnDropFiles(), a 'bool' is expected not 'NoneType'
1.0.5-release-candidate
Stephen Tomkinson 4 years ago
committed by Chris
parent
commit
788817c48d
1 changed files with 1 additions and 0 deletions
  1. 1
      gooey/gui/util/filedrop.py

1
gooey/gui/util/filedrop.py

@ -8,3 +8,4 @@ class FileDrop(wx.FileDropTarget):
def OnDropFiles(self, x, y, filenames):
for name in filenames:
self.window.WriteText(name)
return True
Loading…
Cancel
Save