]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
a minimal test app to show how to build a standalone app with W
authorJust van Rossum <just@lettererror.com>
Sat, 1 Jul 2000 14:31:24 +0000 (14:31 +0000)
committerJust van Rossum <just@lettererror.com>
Sat, 1 Jul 2000 14:31:24 +0000 (14:31 +0000)
Mac/Tools/IDE/Wminiapp.py [new file with mode: 0644]

diff --git a/Mac/Tools/IDE/Wminiapp.py b/Mac/Tools/IDE/Wminiapp.py
new file mode 100644 (file)
index 0000000..3eac613
--- /dev/null
@@ -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()