I always use self boxsizer’s and set my apps to open files instead of embedding them in script.
I’ve been experimenting the codes at Combo Box that Suggests Options.
Lets see if this works without setting a wx.EVT_TEXT event and straight to
a function. I’ll get my type-as-you-search effect.
I add: self.filter.GetValue()[:self.filter.GetInsertionPoint()], and it works as
GetSelection() But you have to set the combobox to read only.
Further down my code I loose the currentText… to just to what I type.
Can we do this without the object choices?
I have chkboxes in my main app the interferes with choices on the combobox.
combo_autocomplete_try.py (2.48 KB)
I always use self boxsizer’s and set my apps to open files instead of embedding them in script.
I’ve been experimenting the codes at Combo Box that Suggests Options.
Lets see if this works without setting a wx.EVT_TEXT event and straight to
a function. I’ll get my type-as-you-search effect.
I add: self.filter.GetValue()[:self.filter.GetInsertionPoint()], and it works as
GetSelection() But you have to set the combobox to read only.
Further down my code I loose the currentText… to just to what I type.
Can we do this without the object choices?
I have chkboxes in my main app the interferes with choices on the combobox.
I needed self.choices and used a while statement. I have it working now. This is a way to
autocomplete and ignor any wx.EVT_TEXT event.
combo_autocomplete_try.py (2.59 KB)
···
On Thursday, October 24, 2013 9:35:58 PM UTC-5, George McCown wrote:
.