Help with wxPython

Roel Schroeven rschroev_nospam_ml at
Fri Aug 12 15:02:08 CEST 2005

mitsura at wrote:

> I have encountered an annoying problem with wx.Choice from wx.Python.
> Basically, what I want to do is create a drop down box with a set of
> choices (so far so good). The problem is that when the drop down box is
> created, the first entry in the list of the drop down box is empty and
> you need to drop down in the list to make your choice.
> I was looking for an option that allows to set a default/preset choice
> in the list.

The SetSelection method does that. I guess the reason you didn't find it 
is because it is not included in the documentation for wxChoice itself; 
it is described in the section for wxControlWithItems, which is 
wxChoice's base class.

If I have been able to see further, it was only because I stood
on the shoulders of giants.  -- Isaac Newton

Roel Schroeven

More information about the Python-list mailing list