|
@@ -711,7 +711,7 @@ class mainFrame(wx.Frame):
|
|
|
flag=wx.EXPAND | wx.LEFT | wx.RIGHT | wx.BOTTOM,
|
|
|
border=5)
|
|
|
|
|
|
- self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
|
|
|
+ self.Bind(wx.EVT_CLOSE, self.OnCancel)
|
|
|
|
|
|
#constrained_size = self.notebookpanel.GetSize()
|
|
|
# 80 takes the tabbar into account
|
|
@@ -840,11 +840,6 @@ class mainFrame(wx.Frame):
|
|
|
|
|
|
event.Skip()
|
|
|
|
|
|
- def OnCloseWindow(self, event):
|
|
|
- """Close the main window"""
|
|
|
- self.MakeModal(False)
|
|
|
- self.Destroy()
|
|
|
-
|
|
|
def OnAbout(self, event):
|
|
|
"""General 'about' information"""
|
|
|
dlg = wx.MessageDialog(self, _("This is a sample program for\n"
|