-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Central dispatcher TODELETE #3663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…, before filling it with tools. Added a nice utility API function, Navigation.addTools.
…vent-framework Navigation toolbar coexistence event framework
The central dispatcher pydispatch can be easily replaced with one using |
To get the tests passing you need to make sure pydispatch is installed on travis. This should probably go into setup like the rest of the dependencies |
Thanks. I hope for the review there is no need of passing test. Federico
|
In that case i suggest that you just add pydispatch to .travis.yml (the line that uses pep to install dependencies) That is a simple way of getting the tests running and we can just remove it again when pydispatch is gone. |
From your descriptions (and with out diving into the code) I like this one best. |
@tacaswell I agree |
Given the centrality of the canvas to the rest of the event handling system and the way that the canvas classes are used as the hook into the gui backend's events I don't think that is going anywhere. |
OK. In that case the question is: If it is just for the tools navigation can assume that role.
|
I am very intrigued by this as well. My book makes extensive use of the One of the implicit reasonings behind the decentralized event dispatcher is I am not entirely -1 on this, as the dispatcher is ancient. I need to read On Sat, Oct 18, 2014 at 12:40 AM, Federico Ariza notifications@github.com
|
I thought about having a separate callback registry in the tools, but then I have to have one in Navigation and also one in Toolbar. In terms of identifying the source of the event, it can be done several ways, at But maybe, the best solution is goint PR #3652 way
|
Another variation for MEP22 PR #2759 #3652
This time using pydispatch as central signal event dispatcher, to communicate between
toolbar
,navigation
andtools
.The use of pydispatch is just for simplicity, and can be replaced with custom code. But the idea, is to implement a central signal handler, that everybody can
connect
andsend
to.