2000-07-01 11:31:24 -03:00
|
|
|
"""Minimal W application."""
|
|
|
|
|
|
|
|
import Wapplication
|
|
|
|
|
|
|
|
class TestApp(Wapplication.Application):
|
|
|
|
|
|
|
|
def __init__(self):
|
2001-08-25 09:15:04 -03:00
|
|
|
from Carbon import Res
|
2000-07-01 11:31:24 -03:00
|
|
|
Res.FSpOpenResFile("Widgets.rsrc", 1)
|
|
|
|
self._menustocheck = []
|
|
|
|
self.preffilepath = ":Python:PythonIDE preferences"
|
|
|
|
Wapplication.Application.__init__(self, 'Pyth')
|
|
|
|
# open a new text editor
|
|
|
|
import PyEdit
|
|
|
|
PyEdit.Editor()
|
|
|
|
# start the mainloop
|
|
|
|
self.mainloop()
|
|
|
|
|
|
|
|
|
|
|
|
TestApp()
|