Just van Rossum | edd9924 | 2000-07-01 14:31:24 +0000 | [diff] [blame] | 1 | """Minimal W application.""" |
| 2 | |
| 3 | import Wapplication |
Jack Jansen | 8f3078b | 2002-04-03 21:28:02 +0000 | [diff] [blame] | 4 | import macresource |
| 5 | import os |
Just van Rossum | edd9924 | 2000-07-01 14:31:24 +0000 | [diff] [blame] | 6 | |
| 7 | class TestApp(Wapplication.Application): |
Tim Peters | 182b5ac | 2004-07-18 06:16:08 +0000 | [diff] [blame] | 8 | |
| 9 | def __init__(self): |
| 10 | from Carbon import Res |
| 11 | # macresource.open_pathname("Widgets.rsrc") |
| 12 | self._menustocheck = [] |
| 13 | self.preffilepath = os.path.join("Python", "PythonIDE preferences") |
| 14 | Wapplication.Application.__init__(self, 'Pyth') |
| 15 | # open a new text editor |
| 16 | import PyEdit |
| 17 | PyEdit.Editor() |
| 18 | # start the mainloop |
| 19 | self.mainloop() |
| 20 | |
Just van Rossum | edd9924 | 2000-07-01 14:31:24 +0000 | [diff] [blame] | 21 | |
| 22 | TestApp() |