Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code Starting point, from http://wiki.wxpython.org/CodeStartingPoints
- Loading branch information
Tim Diller
committed
Aug 11, 2011
1 parent
7e887e1
commit ca06cf2
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
import wx | |||
|
|||
FRAME_TITLE = "Demo" | |||
FRAME_SIZE = (300,200) | |||
|
|||
class AppFrame(wx.Frame): | |||
def __init__(self): | |||
wx.Frame.__init__( self, | |||
None, -1, FRAME_TITLE, | |||
size=FRAME_SIZE, | |||
style=wx.DEFAULT_FRAME_STYLE ) | |||
self.sizer = wx.BoxSizer( wx.VERTICAL ) | |||
|
|||
# put stuff into sizer | |||
|
|||
# apply sizer | |||
self.SetSizer(self.sizer) | |||
self.SetAutoLayout(1) | |||
self.Show(1) | |||
|
|||
app = wx.PySimpleApp() | |||
frame = AppFrame() | |||
app.MainLoop() |