Just van Rossum | edd9924 | 2000-07-01 14:31:24 +0000 | [diff] [blame] | 1 | """Minimal W application.""" |
| 2 | |
| 3 | import Wapplication |
| 4 | |
| 5 | class TestApp(Wapplication.Application): |
| 6 | |
| 7 | def __init__(self): |
Jack Jansen | 5a6fdcd | 2001-08-25 12:15:04 +0000 | [diff] [blame] | 8 | from Carbon import Res |
Just van Rossum | edd9924 | 2000-07-01 14:31:24 +0000 | [diff] [blame] | 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() |