mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Initial port of wxPython demo from Classic to Phoenix.
Pulled and squashed from https://github.com/RobinD42/Phoenix/pull/7 Thanks Metallicow! git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -438,7 +438,7 @@ def BuildDrawFrame(): # this gets called when needed, rather than on import
|
||||
Canvas = self.Canvas
|
||||
Canvas.InitAll()
|
||||
|
||||
## Random tests of everything:
|
||||
## Random tests of everything:
|
||||
colors = self.colors
|
||||
# Rectangles
|
||||
for i in range(3):
|
||||
@@ -1847,6 +1847,7 @@ if __name__ == "__main__":
|
||||
wx.App.__init__(self, *args, **kwargs)
|
||||
|
||||
def OnInit(self):
|
||||
wx.InitAllImageHandlers()
|
||||
DrawFrame = BuildDrawFrame()
|
||||
frame = DrawFrame(None, -1, "FloatCanvas Demo App",wx.DefaultPosition,(700,700))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user