2000-07-01 14:31:24 +00:00
|
|
|
"""Minimal W application."""
|
|
|
|
|
|
|
|
import Wapplication
|
2002-04-03 21:28:02 +00:00
|
|
|
import macresource
|
|
|
|
import os
|
2000-07-01 14:31:24 +00:00
|
|
|
|
|
|
|
class TestApp(Wapplication.Application):
|
|
|
|
|
|
|
|
def __init__(self):
|
2001-08-25 12:15:04 +00:00
|
|
|
from Carbon import Res
|
2002-04-03 21:52:10 +00:00
|
|
|
# macresource.open_pathname("Widgets.rsrc")
|
2000-07-01 14:31:24 +00:00
|
|
|
self._menustocheck = []
|
2002-04-03 21:28:02 +00:00
|
|
|
self.preffilepath = os.path.join("Python", "PythonIDE preferences")
|
2000-07-01 14:31:24 +00:00
|
|
|
Wapplication.Application.__init__(self, 'Pyth')
|
|
|
|
# open a new text editor
|
|
|
|
import PyEdit
|
|
|
|
PyEdit.Editor()
|
|
|
|
# start the mainloop
|
|
|
|
self.mainloop()
|
|
|
|
|
|
|
|
|
|
|
|
TestApp()
|