mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Floatcanvas samples updates for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -63,7 +63,7 @@ class DrawFrame(wx.Frame):
|
||||
MenuBar = wx.MenuBar()
|
||||
|
||||
file_menu = wx.Menu()
|
||||
item = file_menu.Append(wx.ID_ANY, "E&xit","Terminate the program")
|
||||
item = file_menu.Append(wx.ID_EXIT, "","Terminate the program")
|
||||
self.Bind(wx.EVT_MENU, self.OnQuit, item)
|
||||
MenuBar.Append(file_menu, "&File")
|
||||
|
||||
@@ -73,7 +73,7 @@ class DrawFrame(wx.Frame):
|
||||
self.CreateStatusBar()
|
||||
self.SetStatusText("")
|
||||
|
||||
wx.EVT_CLOSE(self, self.OnCloseWindow)
|
||||
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
|
||||
|
||||
# Add the buttons
|
||||
ResetButton = wx.Button(self, label="Reset")
|
||||
@@ -109,6 +109,7 @@ class DrawFrame(wx.Frame):
|
||||
self.Show(True)
|
||||
|
||||
def OnQuit(self,event):
|
||||
self.timer.Stop()
|
||||
self.Close(True)
|
||||
|
||||
def OnCloseWindow(self, event):
|
||||
|
||||
Reference in New Issue
Block a user