]> git.saurik.com Git - wxWidgets.git/commitdiff
Some updates for the demo
authorRobin Dunn <robin@alldunn.com>
Wed, 28 Aug 2002 01:39:00 +0000 (01:39 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 28 Aug 2002 01:39:00 +0000 (01:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/MDIDemo.py
wxPython/demo/MDISashDemo.py
wxPython/demo/demoMainLoop.py
wxPython/demo/wxXmlResourceHandler.py

index 5670f9377c66f1100e8536734303898c38c4c2da..3ae510ea7c5793aa327edf810a5c326abd43197a 100644 (file)
@@ -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)
index 4b2b08ffd745a8b1d5e612f82937ce6b96ac87ed..dca6516f6aa3340a7f8f3dd23121268c6fe47fd4 100644 (file)
@@ -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)
index 78952b464d84d70b3bf473f7f83d10bff99f50eb..23067e932926742f06a61bece9917e14422cf53f 100755 (executable)
@@ -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
index 82acf0b73429d39077063da6ee6d63dc86817d68..dda5005d4efd644e38745327991bfa92cfd35194 100644 (file)
@@ -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")
+
 
 #----------------------------------------------------------------------