Wesley Phillips wrote:
>
> I can not get my list object to respond to events. In the
> initialization for the child window I have:
>
> self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.on_ItemSelected, \
> self.components.List1 )
>
> I have a corresponding routine called /on_ItemSelected/ which never
> gets executed.
>
> I can fill the list from the main window with no problem. Any ideas?
>
> --
> efil si doog
I think you are doing wxPython again. With Pythoncard using a text field
named TextField1 and a list List1 copying the selection to the text
field is as simple as this (no self.Bind needed):
def on_List1_select(self, event):
self.components.TextField1.text =
self.components.List1.stringSelection
Cheers,
Jussi
--
Jussi Salmela
http://personal.inet.fi/cool/operator/
|