mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
a minimal test app to show how to build a standalone app with W
This commit is contained in:
parent
efecc7d05b
commit
edd9924474
1 changed files with 20 additions and 0 deletions
20
Mac/Tools/IDE/Wminiapp.py
Normal file
20
Mac/Tools/IDE/Wminiapp.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue