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:
Robin Dunn
2013-04-30 05:19:51 +00:00
parent 443c6590d2
commit 7bc7aaf7f8
36 changed files with 111 additions and 116 deletions

View File

@@ -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):