* Add communication from GUI to skills - "set" events from Qt will set/update a variable in the skills .gui member - It's possible to add general event handlers using self.gui.register_handler() - Moved registration of skill_id to just after skill init * Ensure that simultaneously writes doesn't occur Wrap WebSocketHandler.write_message() with a lock in an attempt to handle "buffererror: existing exports of data: object cannot be re-sized." * Add better logging to help debug disconnect issue * Allow overriding the idle page SkillGUI.show_page() and SkillGUI.show_pages() now takes an optional override_idle parameter. This is used as a hint by the mark-2 skill and if possible the idle screen will not be shown. * Improve debugging using Logger * Raise exception when sending a non-existing gui page * Restore running state to new connections When a GUI is connected data and running namespaces are synchronised and shown. This refactors the code quite a bit moving the GUI state from the GUIConnection object to the Enclosure. The GUIConnection object does the handles the sync in the on_connection_open() method. * Add gui.page_interaction message Currently triggered on page change on the display. * Handle message when gui changes sessionData * Check if socket exists on gui before sending data * Increase port on each failure and retry |
||
---|---|---|
.. | ||
enclosure | ||
speech | ||
text | ||
__init__.py |