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', 'choice4']
else:
ret = ['Ooops']
self.listbox2.SetItems(ret)
self.listbox2.SetSelection(index)
The help() command at the >>> prompt is your
friend...es[ecially coupled with the IDLE/Pythonwin
method completion feature
>>> import wx
>>> help(wx.ListBox.
Should display a list of long methods which you can browse and view
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor