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

Sat 15 June 2013
By stu

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 {: .alignnone .size-full .wp-image-372 width="1920" height="1080"}

See below for code -


Posted code to github, update to work with multiprocessing.