Browse Source

Prevent child program from executing on window level close

pull/113/head
chriskiehl 9 years ago
parent
commit
d99aef0858
1 changed files with 2 additions and 0 deletions
  1. 2
      gooey/gui/windows/base_window.py

2
gooey/gui/windows/base_window.py

@ -41,6 +41,8 @@ class BaseWindow(wx.Frame):
self.registerControllers()
self.Bind(wx.EVT_SIZE, self.onResize)
self.Bind(wx.EVT_CLOSE, lambda x: pub.send_message(str(events.WINDOW_CLOSE)))
def _init_properties(self):
self.SetTitle(self.build_spec['program_name'])
self.SetSize(self.build_spec['default_size'])

Loading…
Cancel
Save