scroll bar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gandalf

    scroll bar

    why this code is no giving any scroll?
  • Gandalf

    #2
    Re: scroll bar

    forgot the code, sorry,
    the code:
    import wx

    class MyFrame(wx.Fram e):
    def __init__(self, parent, ID, title):
    wx.Frame.__init __(self, parent, ID, title, size=(400, 250))

    myscrolledwindo w = wx.PyScrolledWi ndow(self, -1)
    sizer = wx.BoxSizer()
    myscrolledwindo w.SetSizer(size r)
    myscrolledwindo w.SetScrollRate (1,1)


    app = wx.PySimpleApp( )
    frame = MyFrame(None, -1, "Sizer Test")
    frame.Show()
    app.MainLoop()

    Comment

    Working...