From: Just van Rossum Date: Sat, 1 Jul 2000 14:31:24 +0000 (+0000) Subject: a minimal test app to show how to build a standalone app with W X-Git-Tag: v2.0b1~1137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=edd992447457340e15a89e9d8d42057e0625bf66;p=thirdparty%2FPython%2Fcpython.git a minimal test app to show how to build a standalone app with W --- diff --git a/Mac/Tools/IDE/Wminiapp.py b/Mac/Tools/IDE/Wminiapp.py new file mode 100644 index 000000000000..3eac613990cc --- /dev/null +++ b/Mac/Tools/IDE/Wminiapp.py @@ -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()