blob: d48a876efa681549529654e75339ece3674199e1 [file] [log] [blame]
Just van Rossumedd99242000-07-01 14:31:24 +00001"""Minimal W application."""
2
3import Wapplication
4
5class TestApp(Wapplication.Application):
6
7 def __init__(self):
Jack Jansen5a6fdcd2001-08-25 12:15:04 +00008 from Carbon import Res
Just van Rossumedd99242000-07-01 14:31:24 +00009 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
20TestApp()