Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…, before filling it with tools.Added a nice utility API function, Navigation.addTools.
…vent-frameworkNavigation toolbar coexistence event framework
fariza commentedOct 17, 2014
The central dispatcherpydispatch can be easily replaced with one using |
jenshnielsen commentedOct 17, 2014
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 |
fariza commentedOct 17, 2014
Thanks. I hope for the review there is no need of passing test. Federico
|
jenshnielsen commentedOct 17, 2014
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. |
tacaswell commentedOct 18, 2014
From your descriptions (and with out diving into the code) I like this one best. |
fariza commentedOct 18, 2014
@tacaswell I agree |
tacaswell commentedOct 18, 2014
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. |
fariza commentedOct 18, 2014
OK. In that case the question is: If it is just for the tools navigation can assume that role.
|
WeatherGod commentedOct 18, 2014
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 Arizanotifications@github.com
|
fariza commentedOct 19, 2014
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 usingpydispatch as central signal event dispatcher, to communicate between
toolbar,navigationandtools.The use ofpydispatch is just for simplicity, and can be replaced with custom code. But the idea, is to implement a central signal handler, that everybody can
connectandsendto.