| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…, 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 cbook.CallbackRegistry() |
Sorry, something went wrong.
|
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 |
Sorry, something went wrong.
|
Thanks. I hope for the review there is no need of passing test. Federico
|
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
From your descriptions (and with out diving into the code) I like this one best. |
Sorry, something went wrong.
|
@tacaswell I agree |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
OK. In that case the question is: If it is just for the tools navigation can assume that role.
|
Sorry, something went wrong.
|
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
|
Sorry, something went wrong.
|
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 connect time, we can specify the source/s that I want to listen to. Or at event time filter by the source of the event. But maybe, the best solution is goint PR #3652 way
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Another variation for MEP22 PR #2759 #3652
This time using pydispatch as central signal event dispatcher, to communicate between toolbar, navigation and tools.
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 and send to.