]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/py/PyCrust.py
Applied patch [ 1281902 ] fix for wxJoystick under Linux
[wxWidgets.git] / wxPython / wx / py / PyCrust.py
index c48cb344df6996374d450aa474c4d49074728edb..b9a222763e59623667f5cef2b1755c7c8758e7d9 100644 (file)
@@ -13,22 +13,14 @@ __revision__ = "$Revision$"[11:-2]
 
 import wx
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
-
 class App(wx.App):
     """PyCrust standalone application."""
 
     def OnInit(self):
         import wx
+        from wx import py
         wx.InitAllImageHandlers()
-        locals = __main__.__dict__
-        from crust import CrustFrame
-        self.frame = CrustFrame(locals=locals)
+        self.frame = py.crust.CrustFrame()
         self.frame.SetSize((800, 600))
         self.frame.Show()
         self.SetTopWindow(self.frame)