Thanks Ed. Your support is incredible. Using Hit instead of ListSelection did the job.
Just a small point but shouldn't this event be removed from the ListBox section in the Dabo API? And thanks for mentioning autobind events. I had forgotten about that very cool feature. Steve Rose +++++++++++++++++++++++++++++++++++++++++++++ > As a rank beginner, I've probably missed something silly. Not silly at all - it is a little confusing. There are two distinct controls: dListBox and dListControl. The former is the traditional listbox common in UIs; the latter is a hybrid of grids and lists that can do some pretty cool things, but is overkill for most common uses. ListSelection events only apply to dListControl, not dListBox. For dListBox, you want to bind to the Hit method. > lstBox.bindEvent(dabo.dEvents.ListSelection, self.onListSelection) > > def onListSelection(self,evt): > print 'list hit' One thing I should point out: if you create a method whose name is on<EventName>, and that event is raised by the class, then it will be automatically bound to the event for you. So in this code you've tried to bind to the event twice: once with the explicit binding, and once with the auto-binding. --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
