Drawing to the same content to many windows, cairo and zeromq

Playing with python, zeromq and Gtk, I made this code to send graphics commands to several windows. Commands are sent over a zeromq PUB socket, the windows recieve them using zeromq SUB. Only a few commands are wrapped as it's a proof of concept. I'll clean it up and abstract some bits and it should be quite easy for building something like a live coding environment. Screenshot from 2013-06-15 19:19:37 See below for code - [UPDATE] Posted code to github, update to work with multiprocessing. https://github.com/stuaxo/zeromq-gtk-playground [/UPDATE] (more…)