Some updates for the demo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -41,6 +41,7 @@ class MyParentFrame(wxMDIParentFrame):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
class MyApp(wxApp):
|
class MyApp(wxApp):
|
||||||
def OnInit(self):
|
def OnInit(self):
|
||||||
|
wxInitAllImageHandlers()
|
||||||
frame = MyParentFrame()
|
frame = MyParentFrame()
|
||||||
frame.Show(true)
|
frame.Show(true)
|
||||||
self.SetTopWindow(frame)
|
self.SetTopWindow(frame)
|
||||||
|
@@ -128,6 +128,7 @@ class MyParentFrame(wxMDIParentFrame):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
class MyApp(wxApp):
|
class MyApp(wxApp):
|
||||||
def OnInit(self):
|
def OnInit(self):
|
||||||
|
wxInitAllImageHandlers()
|
||||||
frame = MyParentFrame()
|
frame = MyParentFrame()
|
||||||
frame.Show(true)
|
frame.Show(true)
|
||||||
self.SetTopWindow(frame)
|
self.SetTopWindow(frame)
|
||||||
|
@@ -29,6 +29,7 @@ class MyBluePanel(wxPanel):
|
|||||||
# silly example. It could just as easily have been done in
|
# silly example. It could just as easily have been done in
|
||||||
# the resource.
|
# the resource.
|
||||||
self.SetBackgroundColour("BLUE")
|
self.SetBackgroundColour("BLUE")
|
||||||
|
self.SetForegroundColour("WHITE")
|
||||||
|
|
||||||
|
|
||||||
# To do it the more complex way, (see below) we need to write the
|
# 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):
|
def Create(self, parent, id, pos, size, style, name):
|
||||||
wxPanel.Create(self, parent, id, pos, size, style, name)
|
wxPanel.Create(self, parent, id, pos, size, style, name)
|
||||||
self.SetBackgroundColour("BLUE")
|
self.SetBackgroundColour("BLUE")
|
||||||
|
self.SetForegroundColour("WHITE")
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user