]> git.saurik.com Git - wxWidgets.git/blame - wxPython/samples/wxPIA_book/Chapter-11/basicgridsizer.py
fix building/running of tex2rtf
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-11 / basicgridsizer.py
CommitLineData
be05b434
RD
1import wx
2from blockwindow import BlockWindow
3
4labels = "one two three four five six seven eight nine".split()
5
6class GridSizerFrame(wx.Frame):
7 def __init__(self):
8 wx.Frame.__init__(self, None, -1, "Basic Grid Sizer")
9 sizer = wx.GridSizer(rows=3, cols=3, hgap=5, vgap=5)
10 for label in labels:
11 bw = BlockWindow(self, label=label)
12 sizer.Add(bw, 0, 0)
13 self.SetSizer(sizer)
14 self.Fit()
15
16app = wx.PySimpleApp()
17GridSizerFrame().Show()
18app.MainLoop()