Hi All,
Wondering if anyone can tell me if it's possible (and how to do it, if it is) to programmatically select a value in a choice control?
Many thanks,
Murray
Hi All,
Wondering if anyone can tell me if it's possible (and how to do it, if it is) to programmatically select a value in a choice control?
Many thanks,
Murray
SetSelection(index) will set it based upon position, and SetStringSelection(string) will set it based upon the item's text.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
On Jan 1, 2006, at 11:12 PM, Murray @ PlanetThoughtful wrote:
Wondering if anyone can tell me if it's possible (and how to do it, if it is) to programmatically select a value in a choice control?
Murray @ PlanetThoughtful schrieb:
Hi All,
Wondering if anyone can tell me if it's possible (and how to do it, if it is) to programmatically select a value in a choice control?
Many thanks,
Murray
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Hi Murray,
you can accomplish this by first getting the index of your string and second selecting it.
self.filterChoice.SetSelection(self.filterChoice.FindString('All'))
Ralf
Thank you Ed and Ralph!
Much warmth,
Murray
On 2/01/2006 2:25 PM, Ralf Schoenian wrote:
Murray @ PlanetThoughtful schrieb:
Hi All,
Wondering if anyone can tell me if it's possible (and how to do it, if it is) to programmatically select a value in a choice control?
Many thanks,
Murray
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.orgHi Murray,
you can accomplish this by first getting the index of your string and second selecting it.
self.filterChoice.SetSelection(self.filterChoice.FindString('All'))