I tried very hard to create a window without decorations and a transparent background using PyGTK. Then I will draw the contents of the window with Cairo. But I canβt make it work.
I tried many different ways, they all failed, this is one of them
#!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk, sys, cairo win = None def expose (widget, event): cr = widget.window.cairo_create()
So what is the easiest way to do this?
python gtk pygtk cairo pycairo
paldepind
source share