"Alan Gauld" <[EMAIL PROTECTED]> wrote
> >>> import wx
> >>> help(wx.ListBox.
>
> Should display a list of long methods which you can browse and view
Doh!
Should be "... a long list of methods..." of course.
:-(
Alan G.
___
Tutor maillist - Tutor
I'm not sure this is exactly what you want but it does
something like it:
def OnListBox1(self, event):
index = event.GetSelection()
choice = self.listbox1_items[index]
if choice == 'item1':
ret = ['choice1', 'choice2']
elif choice == 'item2':
ret = ['choice3', 'choi
Inserting this line:
self.listbox2.InsertItems([choice],0)
in your OnListBox1 method after your if/then/else statement puts the item
you select in ListBox1 appear in ListBox2.
You have to force choice into a list, otherwise it will insert each
individual letter in the string into the box one at
Hello,
I'm trying to create a gui using wxpython on ubuntu 6.10 (read, that
some functions of wx differ on different OS).
I have two Listbox items, Listbox1 and Listbox2. I want to update
Listbox2 according to the choice made in Listbox1.
I already looked at the wx API doc, but only found method