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):
|
|
|
|
|
|
|
|
def __init__(self):
|
2001-08-25 09:15:04 -03:00
|
|
|
from Carbon import Res
|
2002-04-03 17:52:10 -04:00
|
|
|
# macresource.open_pathname("Widgets.rsrc")
|
2000-07-01 11:31:24 -03:00
|
|
|
self._menustocheck = []
|
2002-04-03 17:28:02 -04:00
|
|
|
self.preffilepath = os.path.join("Python", "PythonIDE preferences")
|
2000-07-01 11:31:24 -03:00
|
|
|
Wapplication.Application.__init__(self, 'Pyth')
|
|
|
|
# open a new text editor
|
|
|
|
import PyEdit
|
|
|
|
PyEdit.Editor()
|
|
|
|
# start the mainloop
|
|
|
|
self.mainloop()
|
|
|
|
|
|
|
|
|
|
|
|
TestApp()
|