Combo box values

I dont know if it's a bug or is not correct what i'm doing.
Using ComboBox with set a default value, if i try to get combo.GetValue() it return an empty string until i phisically make a
selection in the combo box (even if it is the same as the default one).

Alessandro Crugnola - sephiroth

···

---------------------------------------------
Macromedia Flash Team Volunteer
http://www.macromedia.com/go/team
Flash && PHP developer
alessandro@sephiroth.it

*relax with SEPY http://www.sf.net/projects/sepy
---------------------------------------------

Alessandro Crugnola *sephiroth* wrote:

I dont know if it's a bug or is not correct what i'm doing.
Using ComboBox with set a default value, if i try to get combo.GetValue() it return an empty string until i phisically make a
selection in the combo box (even if it is the same as the default one).

Do you do a SetSelection? If so then this may be the same issue that Peter reported. That is the only way I can duplicate it. If I set the default value and the list of choices in the wx.ComboBox constructor then it works fine for me.

I'm looking in to the problem of GetValue being wrong when SetSelection is used.

···

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

::Do you do a SetSelection? If so then this may be the same
::issue that Peter reported. That is the only way I can
::duplicate it. If I set the default value and the list of
::choices in the wx.ComboBox constructor then it works fine for me.
::
::I'm looking in to the problem of GetValue being wrong when
::SetSelection is used.

Yes, i use SetSelection too. Btw, this issue didnt happen for me in previous versions

Alessandro Crugnola - sephiroth

···

---------------------------------------------
Macromedia Flash Team Volunteer
http://www.macromedia.com/go/team
Flash && PHP developer
alessandro@sephiroth.it

*relax with SEPY http://www.sf.net/projects/sepy
---------------------------------------------

::-----Original Message-----
::From: Robin Dunn [mailto:robin@alldunn.com]
::Sent: martedì 19 ottobre 2004 20.10
::To: wxPython-dev@lists.wxwidgets.org
::Subject: Re: [wxPython-dev] Combo box values
::
::Alessandro Crugnola *sephiroth* wrote:
::> I dont know if it's a bug or is not correct what i'm doing.
::> Using ComboBox with set a default value, if i try to get
::> combo.GetValue() it return an empty string until i
::phisically make a selection in the combo box (even if it is
::the same as the default one).
::>
::

::
::--
::Robin Dunn
::Software Craftsman
::http://wxPython.org Java give you jitters? Relax with wxPython!
::
::
::---------------------------------------------------------------------
::To unsubscribe, e-mail: wxPython-dev-unsubscribe@lists.wxwidgets.org
::For additional commands, e-mail:
::wxPython-dev-help@lists.wxwidgets.org