mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
Seems to solve seg fault problem. Nice
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user