Seems to solve seg fault problem. Nice

This commit is contained in:
2012-08-31 17:00:14 +02:00
parent 53348b91ae
commit c2500dde9c
2 changed files with 4 additions and 1 deletions

View File

@@ -111,6 +111,7 @@ class IvolutionTemplate ( wx.Frame ):
self.Centre( wx.BOTH ) self.Centre( wx.BOTH )
# Connect Events # Connect Events
self.Bind( wx.EVT_CLOSE, self.on_exit )
self.Bind( wx.EVT_MENU, self.on_exit, id = self.exititem.GetId() ) self.Bind( wx.EVT_MENU, self.on_exit, id = self.exititem.GetId() )
self.Bind( wx.EVT_MENU, self.on_help, id = self.helpitem.GetId() ) self.Bind( wx.EVT_MENU, self.on_help, id = self.helpitem.GetId() )
self.Bind( wx.EVT_MENU, self.on_about, id = self.aboutitem.GetId() ) self.Bind( wx.EVT_MENU, self.on_about, id = self.aboutitem.GetId() )
@@ -128,6 +129,7 @@ class IvolutionTemplate ( wx.Frame ):
def on_exit( self, event ): def on_exit( self, event ):
event.Skip() event.Skip()
def on_help( self, event ): def on_help( self, event ):
event.Skip() event.Skip()

View File

@@ -199,7 +199,8 @@ either expressed or implied, of the FreeBSD Project."""
# Clean up code for saving application state should be added here. # Clean up code for saving application state should be added here.
self.notify(["Application", ["STOP"]]) # Asking the Facemovie to stop self.notify(["Application", ["STOP"]]) # Asking the Facemovie to stop
self.process_running = False self.process_running = False
self.Close(True) # Close the frame. #self.Close(True) # Close the frame.
sys.exit(0)
# system methods # system methods
def get_current_mode(self): def get_current_mode(self):