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)