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