wxComboBox and SetValue

Hi,

When you use SetValue on a ComboBox before it is displayed then the text
looks selected although the ComboBox doesn't have focus.
See attached sample script.

Running wxPython 2.5.1.5 with Python 2.3.3 under WinXP.
wxPython 2.4.2.4 doesn't have this problem and under wxGTK2
with 2.5.1.5 it looks OK aswell.

Regards
    Adi

test.py (1.19 KB)

Adi Sieker wrote:

Hi,

When you use SetValue on a ComboBox before it is displayed then the text
looks selected although the ComboBox doesn't have focus.
See attached sample script.

Running wxPython 2.5.1.5 with Python 2.3.3 under WinXP.
wxPython 2.4.2.4 doesn't have this problem and under wxGTK2
with 2.5.1.5 it looks OK aswell.

Please enter a bug report about this.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hi,

I too have this problem.
Also the SetMark doesn't work, before it is displayed.

I use is 2.5.2.3 on WindowsXP.
I downloaded just now 2.5.2.7 and it has the same problem.

Anybody knows a workaround for the time being?

thank you in advance.

···

On Thu, 27 May 2004 10:36:04 -0700, Robin Dunn <robin@alldunn.com> wrote:

Adi Sieker wrote:

Hi,

When you use SetValue on a ComboBox before it is displayed then the text
looks selected although the ComboBox doesn't have focus.
See attached sample script.

Running wxPython 2.5.1.5 with Python 2.3.3 under WinXP.
wxPython 2.4.2.4 doesn't have this problem and under wxGTK2
with 2.5.1.5 it looks OK aswell.

Please enter a bug report about this.

--
Franz Steinhaeusler