From: Alex T. <al...@tw...> - 2007-05-18 18:11:13
|
Matthew Richardson wrote: > Hello, > > I figured out how to append to a choice component, but what if you > want remove an item? > Rather embarrassingly, I don't currently have a working PythonCard installation, so I haven't tested this :-) It looks as though you can (i.e. need to) do something like mychoices = self.components.theChoice.items del mychoices[3] self.components.theChoice.items = mychoices Assigning to a choice component's "items" is equivalent to clearing and then appending the list of items. -- Alex Tweedly mailto:al...@tw... www.tweedly.net |