projects
/
wxWidgets.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
prevent disappearing menus in tabmdi
[wxWidgets.git]
/
wxPython
/
samples
/
wxPIA_book
/
Chapter-01
/
spare.py
1
#!/usr/bin/env python
2
3
"""Spare.py is a starting point for simple wxPython programs."""
4
5
import
wx
6
7
class
Frame
(
wx
.
Frame
):
8
pass
9
10
class
App
(
wx
.
App
):
11
12
def
OnInit
(
self
):
13
self
.
frame
=
Frame
(
parent
=
None
,
title
=
'Spare'
)
14
self
.
frame
.
Show
()
15
self
.
SetTopWindow
(
self
.
frame
)
16
return True
17
18
if
__name__
==
'__main__'
:
19
app
=
App
()
20
app
.
MainLoop
()