summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>2000-07-01 14:31:24 (GMT)
committerJust van Rossum <just@lettererror.com>2000-07-01 14:31:24 (GMT)
commitedd992447457340e15a89e9d8d42057e0625bf66 (patch)
tree2645cba804b99e8edf2560cfd5be22baf27f3f84 /Mac/Tools
parentefecc7d05bf674db579638e0a8e5b5496e1e0826 (diff)
downloadcpython-edd992447457340e15a89e9d8d42057e0625bf66.zip
cpython-edd992447457340e15a89e9d8d42057e0625bf66.tar.gz
cpython-edd992447457340e15a89e9d8d42057e0625bf66.tar.bz2
a minimal test app to show how to build a standalone app with W
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/Wminiapp.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/Wminiapp.py b/Mac/Tools/IDE/Wminiapp.py
new file mode 100644
index 0000000..3eac613
--- /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()