Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Scrolled(wx.ScrolledWindow):
- def __init__(self, parent):
- wx.ScrolledWindow.__init__(self, parent, size=(200,200))
- self.SetScrollRate(0, 10);
- sizerV = wx.BoxSizer(wx.VERTICAL)
- #create a bunch of stuff in the sizer which doesnt fit
- for i in range(0,50):
- text = "Line: " + str(i)
- sizerV.Add(wx.StaticText(self, label=text), 0)
- self.SetSizer(sizerV)
- class Frame(wx.Frame):
- def __init__(self, parent):
- wx.Frame.__init__(self, parent, size=(200,200), Scrolled(self)
- title="Scroll Bars", style=wx.CAPTION)
Add Comment
Please, Sign In to add comment