-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Hello,
I wonder if a signal / slot mechanism shouldn't be more "user friendly".
For example we could write:
class MyApp(object):
def __init__(self):
...
self.switch.pressed.connect(self.do_it_when_pressed)
instead of
class MyApp(object):
def __init__(self):
...
self.switch.set_callback_up(self.do_it_when_pressed)
Some signal / slot library are
https://pythonhosted.org/blinker/
https://github.com/circuits/circuits
https://github.com/shaunduncan/smokesignal
An other pattern to consider may be Pub / sub
http://pubsub.sourceforge.net/
This issue is related to #60
Kind regards
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels