Problem with wxListBox's Scrollbar

Hi all,

I have a problem with wxListBox.
If you run the code below, you will see the scrollbar of the listbox is hidden by
the textctrl.

I’m on centos 3.0 with gtk2, python 2.4.2 and wxpython 2.6.1.0

Is anyone can help me?

Thanks

Michael
#! /usr/bin/env python

-- coding: UTF-8 --

from wxPython.wx import *
class Frame(wxFrame):
def init(self, parent, id, title):
wxFrame.init(self, parent, id, title, size=(300,-1))
self.panel = wxPanel(self, -1)
vs = wxBoxSizer(wxVERTICAL)
vs.Add((0,40), 0)
vs.Add(wxTextCtrl(self.panel, -1, “”), 0, wxALIGN_CENTER, 5)
vs.Add(wxTextCtrl(self.panel, -1, “”), 0, wxALIGN_CENTER, 5)
vs.Add(wxTextCtrl(self.panel, -1, “”), 0, wxALIGN_CENTER, 5)
vs.Add(wxTextCtrl(self.panel, -1, “”), 0, wxALIGN_CENTER, 5)
vs.Add(wxTextCtrl(self.panel, -1, “”), 0, wxALIGN_CENTER, 5)
vs.Add(wxTextCtrl(self.panel, -1, “”), 0, wxALIGN_CENTER, 5)vs.Add(wxTextCtrl(self.panel, -1, “”), 0, wxALIGN_CENTER, 5)
vs.Add(wxTextCtrl(self.panel, -1, “”), 0, wxALIGN_CENTER, 5)
self.panel.SetSizer(vs)
self.panel.SetAutoLayout(1)
c = []
for i in range(200):
c.append(repr(i))
l = wxListBox(self.panel, -1, choices = c, style = wxLB_SINGLE|wxLB_ALWAYS_SB)
l.Move((20,20))
app = wxPySimpleApp()
f = Frame(None, -1, “Test”)
f.Show(True)
app.MainLoop()

[](http://secure.caramail.lycos.fr/services/content/advdetail.jsp?advid=advrss&advsvc=advcomplete&
TARGETCODE=FR_footermail_link) CaraMail, le seul webmail à vous offrir des fils d’info RSS sans aucun logiciel à installer!