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).
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
::-----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).
::>
::