Connecting Tech Pros Worldwide Forums | Help | Site Map

wx scroll bar

Gandalf
Guest
 
Posts: n/a
#1: Aug 21 '08
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!

Gandalf
Guest
 
Posts: n/a
#2: Aug 21 '08

re: wx scroll bar


On Aug 21, 2:42*pm, Gandalf <goldn...@gmail.comwrote:
Quote:
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);
Closed Thread


Similar Python bytes