home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / MacHacksBug / Python 1.5.2c1 / Mac / Tools / IDE / Wminiapp.py < prev    next >
Encoding:
Python Source  |  2000-06-23  |  413 b   |  21 lines

  1. """Minimal W application."""
  2.  
  3. import Wapplication
  4.  
  5. class TestApp(Wapplication.Application):
  6.     
  7.     def __init__(self):
  8.         import Res
  9.         Res.FSpOpenResFile("Widgets.rsrc", 1)
  10.         self._menustocheck = []
  11.         self.preffilepath = ":Python:PythonIDE preferences"
  12.         Wapplication.Application.__init__(self, 'Pyth')
  13.         # open a new text editor
  14.         import PyEdit
  15.         PyEdit.Editor()
  16.         # start the mainloop
  17.         self.mainloop()
  18.     
  19.  
  20. TestApp()
  21.