View Single Post
Old Mar 24th, 2008, 3:15 PM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,798
Rep Power: 5 Sane will become famous soon enough
Re: wxPython listboxsize

I believe the size parameter must be of the type "wx.Size", and not a tuple. This may or may not fix the problem. If it does not fix the problem, it may have to do with the size of your panel and slider. A control can only take up a maximum size of what it's being placed inside.

Try:
self.listbox = wx.ListBox(panel, -1,size=wx.Size(200,380))
Sane is offline   Reply With Quote