[Pypentago-devel] New GUI/Connection interaction approach
Status: Pre-Alpha
Brought to you by:
segfaulthunter
From: Florian M. <flo...@ai...> - 2008-07-19 16:13:55
|
I have been thinking about a different approach on how the Interface and the Connection might interact. At the moment, the GUI functions to be called are hard-coded into the Connection code. While this is okay, it might be hindering if we plan to use a different GUI tool-kit or refactor the GUI code. So what I have thought about is a hook system. This means that the connection code offers hooks that can be set by the GUI code, which are executed after particular functions have been called. This would emphasize the separation of GUI and Connection. I have also thought about doing major changes to the easy_twisted library which should allow it to send other data than strings. I could either use JSON, where there is a module for Python, or write the serialisation myself, which would of course be some work. This would have the advantage that we could send lists and tuples over the network with nearly no limitations(JSON has the limitation that dictionary keys have to be strings). So what do you think? Best regards, Florian Mayer -- GPG Key ID: BC0FFB31 Blog: http://segfaulthunter.blogspot.com/ |