sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Gandalf's Avatar

wx scroll bar


Question posted by: Gandalf (Guest) on August 21st, 2008 01:45 PM
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!
1 Answer Posted
Gandalf's Avatar
Guest - n/a Posts
#2: Re: wx scroll bar

On Aug 21, 2:42*pm, Gandalf <goldn...@gmail.comwrote:
Quote:
Originally Posted by
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);
 
Not the answer you were looking for? Post your question . . .
197,045 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 197,045 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors