Skip to content

Commit

Permalink
on quit menu selected, close titi
Browse files Browse the repository at this point in the history
  • Loading branch information
emilopez committed Jun 30, 2014
1 parent 0a93457 commit ba95e89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MainFrameBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,12 @@ def onAboutSelected( self, event ):
def onMassiveCalcsSelected( self, event ):
self.MassiveCalcs = MasiveCalcsFrame(None)
self.MassiveCalcs.Show()

def onQuitSelected( self, event ):
dlg = wx.MessageDialog(self,
"Do you really want to close this application?",
"Confirm Exit", wx.OK|wx.CANCEL|wx.ICON_QUESTION)
result = dlg.ShowModal()
dlg.Destroy()
if result == wx.ID_OK:
self.Destroy()

0 comments on commit ba95e89

Please sign in to comment.