Skip to content

Commit edd9924

Browse files
author
Just van Rossum
committed
a minimal test app to show how to build a standalone app with W
1 parent efecc7d commit edd9924

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Mac/Tools/IDE/Wminiapp.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""Minimal W application."""
2+
3+
import Wapplication
4+
5+
class TestApp(Wapplication.Application):
6+
7+
def __init__(self):
8+
import Res
9+
Res.FSpOpenResFile("Widgets.rsrc", 1)
10+
self._menustocheck = []
11+
self.preffilepath = ":Python:PythonIDE preferences"
12+
Wapplication.Application.__init__(self, 'Pyth')
13+
# open a new text editor
14+
import PyEdit
15+
PyEdit.Editor()
16+
# start the mainloop
17+
self.mainloop()
18+
19+
20+
TestApp()

0 commit comments

Comments
 (0)