mirror of https://github.com/python/cpython
a minimal test app to show how to build a standalone app with W
This commit is contained in:
parent
efecc7d05b
commit
edd9924474
|
@ -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…
Reference in New Issue