hi all,
even if in the documentation I have not found it I have seen that among the methods of wx.ComboBox I can use SetSelection().
It works until use values as 1,2,3 but if I put -1 ,that is I try to set the combo on any intems,
it doesn't work but not even me return an error.
I would want to do this because I have noticed that just wx.ComboBox is created the value of GetCurrentSelection() is -1 and there is no
items select.
I believed whether to return to this state I was able to set the current selection to -1 using SetSelection().
self.cbDepartments.SetSelection(-1)
where self.cbDepartments is
self.cbDepartments = wx.ComboBox(panel,ID_DEPARTMENTS,
size = (100, -1),
choices = '',
style = wx.CB_READONLY|wx.CB_DROPDOWN)
the combo is fed by records(tuple) extracted by a database.
I'm on debian.
suggestions?
regards
beppe