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): |
| 8 | |
| 9 | def __init__(self): |
Jack Jansen | 5a6fdcd | 2001-08-25 12:15:04 +0000 | [diff] [blame] | 10 | from Carbon import Res |
Jack Jansen | e9c0358 | 2002-04-03 21:52:10 +0000 | [diff] [blame] | 11 | # macresource.open_pathname("Widgets.rsrc") |
Just van Rossum | edd9924 | 2000-07-01 14:31:24 +0000 | [diff] [blame] | 12 | self._menustocheck = [] |
Jack Jansen | 8f3078b | 2002-04-03 21:28:02 +0000 | [diff] [blame] | 13 | self.preffilepath = os.path.join("Python", "PythonIDE preferences") |
Just van Rossum | edd9924 | 2000-07-01 14:31:24 +0000 | [diff] [blame] | 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 | |
| 21 | |
| 22 | TestApp() |