Browse Source

Reapply button binding

pull/150/head
chriskiehl 9 years ago
parent
commit
b0042f6362
1 changed files with 3 additions and 1 deletions
  1. 4
      gooey/gui/widgets/widget_pack.py

4
gooey/gui/widgets/widget_pack.py

@ -58,6 +58,8 @@ class BaseChooser(WidgetPack):
widget_sizer.AddSpacer(10)
widget_sizer.Add(self.button, 0, wx.ALIGN_CENTER_VERTICAL)
parent.Bind(wx.EVT_BUTTON, self.on_button, self.button)
return widget_sizer
def get_value(self):
@ -72,7 +74,7 @@ class BaseFileChooser(BaseChooser):
def __init__(self):
BaseChooser.__init__(self)
def onButton(self, evt):
def on_button(self, evt):
dlg = self.dialog(self.parent)
result = (self.get_path(dlg)
if dlg.ShowModal() == wx.ID_OK

Loading…
Cancel
Save