ScrolledPanel scrolling for no reason(?)
Jesse Aldridge
jessealdridge at gmail.com
Fri Jan 25 16:47:39 PST 2008
After running the following, when I click on the scrolled panel, it scrolls
right a bit.
Also if after clicking on the scrolled panel, I drag the entire frame, it
scrolls right again.
What's going on?
Is this a bug?
import wx
import wx.lib.scrolledpanel as scrolled
app =3D wx.App()
frame =3D wx.Frame( None, title=3D"Scroll Panel Issue", size=3D(400,400) )
frame.sizer =3D wx.BoxSizer( wx.HORIZONTAL )
frame.SetSizer( frame.sizer )
scrolled_panel =3D scrolled.ScrolledPanel( frame, wx.ID_ANY )
scrolled_panel.SetVirtualSizeWH( 1000, 1000 )
scrolled_panel.SetScrollRate(20,20)
panel =3D wx.Panel( frame, size=3D(100,100), style=3D wx.SIMPLE_BORDER )
frame.sizer.Add( panel, flag=3Dwx.EXPAND )
frame.sizer.Add( scrolled_panel, proportion=3D1, flag=3Dwx.EXPAND )
frame.Show()
app.MainLoop()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200801=
25/4adc9b68/attachment.htm
More information about the wxpython-users
mailing list