Permalink
Browse files

Code Starting point, from http://wiki.wxpython.org/CodeStartingPoints

  • Loading branch information...
1 parent 7e887e1 commit ca06cf2a8444ab6fb91166e72383ded3413aa709 Tim Diller committed Aug 11, 2011
Showing with 23 additions and 0 deletions.
  1. +23 −0 wx/slider_spin.py
View
@@ -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()

0 comments on commit ca06cf2

Please sign in to comment.