Adi J. Sieker wrote:
Hi,


On Mon, 17 Oct 2005 06:29:09 -0700, Paul McNett wrote:

Ed Leafe wrote:


I'm playing around with the repainting flicker in Bubblet, and
thought that I'd try raising a custom event from the form that
each bubble would respond to.


Ok, so you are making a new event such as:

class MyEvent(dabo.dEvents.Event): pass



I'm using bindEvent() to bind each bubble to
the custom event, and the form is raising the event at the proper
 time.


class Bubble(..):
def initEvents(self):
self.Form.bindEvent(MyEvent, self.onMyEvent)



Oh, is that the way it's supposed to work?

I always do:
class Form
    def initProperties(self,):
        bubble = Bubble(...)
            bubble.bindEvent(MyEvent, self.onBubbleEvent)


That work as I would excpect it to work.

That works for events generated from bubble. Your code works as expected. Ed has events generated from the form and he wanted the bubble to receive them.

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to