minor changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 1999-09-18 18:21:02 +00:00
parent b2bc50e4ca
commit 26197023a7
2 changed files with 2 additions and 0 deletions

View File

@ -276,6 +276,7 @@ class wxPythonDemo(wxFrame):
def OnCloseWindow(self, event): def OnCloseWindow(self, event):
self.dying = true self.dying = true
self.window = None self.window = None
self.mainmenu = None
self.Destroy() self.Destroy()
#--------------------------------------------- #---------------------------------------------

View File

@ -6,6 +6,7 @@ from wxPython.wx import *
def runTest(frame, nb, log): def runTest(frame, nb, log):
dlg = wxMessageDialog(frame, 'Hello from Python and wxPython!', dlg = wxMessageDialog(frame, 'Hello from Python and wxPython!',
'A Message Box', wxOK | wxICON_INFORMATION) 'A Message Box', wxOK | wxICON_INFORMATION)
#wxYES_NO | wxNO_DEFAULT | wxCANCEL | wxICON_INFORMATION)
dlg.ShowModal() dlg.ShowModal()
dlg.Destroy() dlg.Destroy()