a minimal test app to show how to build a standalone app with W

This commit is contained in:
Just van Rossum 2000-07-01 14:31:24 +00:00
parent efecc7d05b
commit edd9924474
1 changed files with 20 additions and 0 deletions

20
Mac/Tools/IDE/Wminiapp.py Normal file
View File

@ -0,0 +1,20 @@
"""Minimal W application."""
import Wapplication
class TestApp(Wapplication.Application):
def __init__(self):
import Res
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()