471,595 Members | 987 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

wx scroll bar

Hi every one. I'm not sure whether my framework is relevant so i will
mention it any way.
windows XP
python 2.5.2
wx 2.8 something...

I'm trying to scroll a panel element and it doesn't work. (maybe this
function doesn't supposed to scroll element like this)

this is the relevant code:
wx.Frame.__init__(self, parent, id, title, size=(500, 400))
panel1=wx.Panel(self, -1, style=wx.SIMPLE_BORDER, size=(400, 460));
panel1.SetBackgroundColour('#cce8fa')
sw = wx.ScrolledWindow(panel1)

sw.SetScrollbars(20,20,55,40)

if any one know how should i do it I will be extremely thankful

thanks!
Aug 21 '08 #1
1 2106
On Aug 21, 2:42*pm, Gandalf <goldn...@gmail.comwrote:
Hi every one. I'm not sure whether my framework is relevant so i will
mention it any way.
windows XP
python 2.5.2
wx 2.8 something...

I'm trying to scroll a panel element *and it doesn't work. (maybe this
function doesn't supposed to scroll element like this)

this is the relevant code:
wx.Frame.__init__(self, parent, id, title, size=(500, 400))
panel1=wx.Panel(self, -1, style=wx.SIMPLE_BORDER, size=(400, 460));
panel1.SetBackgroundColour('#cce8fa')
sw = wx.ScrolledWindow(panel1)

sw.SetScrollbars(20,20,55,40)

if any one know how should i do it I will be extremely *thankful

thanks!

OK I solved it.

if any one ever bump the same problem

panel1.SetScrollbar(wx.VERTICAL, 0, 6, 50);
Aug 21 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Arlie Rahn | last post: by
4 posts views Thread by ojorus | last post: by
3 posts views Thread by Devonish | last post: by
1 post views Thread by Keltus | last post: by
6 posts views Thread by Mike Johnson | last post: by
6 posts views Thread by =?Utf-8?B?U2hhcm9u?= | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.