From: Kevin A. <al...@se...> - 2004-11-19 19:00:21
|
On Nov 18, 2004, at 6:17 AM, Arsalan Zaidi wrote: > How do I call on_FolderTree_selectionChanged(self, event) from within > another function? > > In other words, in foo() I update a data store and I want the > FolderTree > component to update itself with the new data. > on_FolderTree_selectionChanged(self, event) usually does this job... > > So how do I go about doing this? > > Thanks in advance! > > --Arsalan > You can call any event method just like you call any other method, just pass None as the parameter and then make sure your event handler either doesn't use the event argument or checks whether it is None and uses one of the component methods to get the selection if it is None. ka |