Connecting Tech Pros Worldwide Help | Site Map

wx scroll bar

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 21st, 2008, 12:45 PM
Gandalf
Guest
 
Posts: n/a
Default 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!

  #2  
Old August 21st, 2008, 01:45 PM
Gandalf
Guest
 
Posts: n/a
Default 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);
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,662 network members.