Am 2010-10-12 um 16:24 schrieb Ed Leafe: >> self.raiseEvent(events.OpenFile, filename=self.FileName.Value) > > You need to define the appliesToClass() classmethod for your event > class. From dEvent.py: ... > Look at some of the classes in dEvent.py for examples of how this > method works.
Since * not all Event classes in dEvent implement appliesToClass, * I don't care, who is raising the event I thought I could leave that out. Now I implement it and just return True - but the event still isn't received. I also tried the issubclass test on every possible base class (sender and receiver) without result. My events work within the same object, but not from e.g. a Panel to the App or another Panel. Did I understand you (and the source) right that appliesToClass checks if the sender is allowed to raise that event? I guess I still don't get what my (not dabo.ui descendant) object has to do/implement/inherit other that inheriting EventMixin und binding the event. BTW, test code in eventMixin.py again: - TestEvent must have the same signature as dEvent - TestEvent needs a Continue property - it's unbindEvent, not unBindEvent Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) _______________________________________________ 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]
