Robin Dunn wrote:
Will Sadkin wrote:
I note that .AppendItems() is still missing...
It's got a docstring though:
$ pydoc wx.ComboBox.AppendItems
Help on method AppendItems in wx.ComboBox:wx.ComboBox.AppendItems = AppendItems(*args, **kwargs) unbound
wx._controls.ComboBox methodAppend(self, List strings)
Apend several items at once to the control. Notice that calling
this method may be much faster than appending the items one by
one if you need to add a lot of items.
Ok, so I need to add such a method to masked.ComboBox, because
the choices are vetted against the mask, justified, etc, prior
to being set in the base control, but I want to mimic the base
control as much as possible where appropriate.
But the above confuses me;
"wx.ComboBox.AppendItems = AppendItems(*args, **kwargs) unbound
wx._controls.ComboBox method
Append(self, List strings)"
Is it AppendItems(self, List strings) (ie. a typo) or does
the 2.5.2 wxPython .Append() silently determine if it's a single
choice or a sequnce and "does the right thing?" If the latter,
what about the 2nd optional argument to .Append(), namely the
"clientData"; if AppendItems() takes a list, is it supposed to be
a list of tuples (string, clientData), and if not, what do you
do about this argument?
(It would help if I knew what the supported positional and keyword
args supported actually ARE!)
/WS