From 4d5a7477ff2ec8bea62ddc4f8221bd048f445813 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 28 Aug 2002 01:39:00 +0000 Subject: [PATCH] Some updates for the demo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/MDIDemo.py | 1 + wxPython/demo/MDISashDemo.py | 1 + wxPython/demo/demoMainLoop.py | 2 +- wxPython/demo/wxXmlResourceHandler.py | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wxPython/demo/MDIDemo.py b/wxPython/demo/MDIDemo.py index 5670f9377c..3ae510ea7c 100644 --- a/wxPython/demo/MDIDemo.py +++ b/wxPython/demo/MDIDemo.py @@ -41,6 +41,7 @@ class MyParentFrame(wxMDIParentFrame): if __name__ == '__main__': class MyApp(wxApp): def OnInit(self): + wxInitAllImageHandlers() frame = MyParentFrame() frame.Show(true) self.SetTopWindow(frame) diff --git a/wxPython/demo/MDISashDemo.py b/wxPython/demo/MDISashDemo.py index 4b2b08ffd7..dca6516f6a 100644 --- a/wxPython/demo/MDISashDemo.py +++ b/wxPython/demo/MDISashDemo.py @@ -128,6 +128,7 @@ class MyParentFrame(wxMDIParentFrame): if __name__ == '__main__': class MyApp(wxApp): def OnInit(self): + wxInitAllImageHandlers() frame = MyParentFrame() frame.Show(true) self.SetTopWindow(frame) diff --git a/wxPython/demo/demoMainLoop.py b/wxPython/demo/demoMainLoop.py index 78952b464d..23067e9329 100755 --- a/wxPython/demo/demoMainLoop.py +++ b/wxPython/demo/demoMainLoop.py @@ -90,7 +90,7 @@ class MyApp(wxApp): # This inner loop will process any GUI events until there # are no more waiting. - while self.Pending(): + while self.Pending(): self.Dispatch() # Send idle events to idle handlers. You may want to throtle diff --git a/wxPython/demo/wxXmlResourceHandler.py b/wxPython/demo/wxXmlResourceHandler.py index 82acf0b734..dda5005d4e 100644 --- a/wxPython/demo/wxXmlResourceHandler.py +++ b/wxPython/demo/wxXmlResourceHandler.py @@ -29,6 +29,7 @@ class MyBluePanel(wxPanel): # silly example. It could just as easily have been done in # the resource. self.SetBackgroundColour("BLUE") + self.SetForegroundColour("WHITE") # To do it the more complex way, (see below) we need to write the @@ -43,6 +44,8 @@ class PreMyBluePanel(wxPanel): def Create(self, parent, id, pos, size, style, name): wxPanel.Create(self, parent, id, pos, size, style, name) self.SetBackgroundColour("BLUE") + self.SetForegroundColour("WHITE") + #---------------------------------------------------------------------- -- 2.47.2