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