hamster-experiments icon indicating copy to clipboard operation
hamster-experiments copied to clipboard

add support for transparent windows

Open tstriker opened this issue 12 years ago • 0 comments

in do_expose we can do this trick to paint the background transparent:

        context.set_operator(cairo.OPERATOR_CLEAR)
        context.fill_preserve()
        context.set_operator(cairo.OPERATOR_OVER)

the main app window also needs this: win.set_app_paintable(True) win.set_colormap(win.get_screen().get_rgba_colormap())

via http://stackoverflow.com/a/4902541/46617

tstriker avatar Dec 04 '12 19:12 tstriker