[Gajim-devel] [PATCH] publisher/subscriber in common/events.py (+ decoupling from systray.py)
Mikhail Gusarov
dottedmag at dottedmag.net
Sat Mar 17 14:48:39 CET 2007
Twas brillig at 10:05:06 11.03.2007 UTC+01 when Yann Le Boulanger did gyre and gimble:
YLB> about your pps: you want systray (and other classes that would use this
YLB> event system) to be a child of a new class that will contain some general
YLB> code to register / unregister listener ? that sounds a good idea
Yes. Probably it's more "pythonic" to create just generic Event class, instances
of which act like this:
a = Event(...)
a.subscribe(handler)
a.fire()
...
--
JID: dottedmag at jabber.dottedmag.net
More information about the Gajim-devel
mailing list