blob: e09e3343d8ecea6280db82707bf39a0f2b72b080 [file] [log] [blame]
Just van Rossumedd99242000-07-01 14:31:24 +00001"""Minimal W application."""
2
3import Wapplication
Jack Jansen8f3078b2002-04-03 21:28:02 +00004import macresource
5import os
Just van Rossumedd99242000-07-01 14:31:24 +00006
7class TestApp(Wapplication.Application):
8
9 def __init__(self):
Jack Jansen5a6fdcd2001-08-25 12:15:04 +000010 from Carbon import Res
Jack Jansene9c03582002-04-03 21:52:10 +000011# macresource.open_pathname("Widgets.rsrc")
Just van Rossumedd99242000-07-01 14:31:24 +000012 self._menustocheck = []
Jack Jansen8f3078b2002-04-03 21:28:02 +000013 self.preffilepath = os.path.join("Python", "PythonIDE preferences")
Just van Rossumedd99242000-07-01 14:31:24 +000014 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
22TestApp()