Donald Harvey
Donald Harvey

Reputation: 917

PyGTK widget opacity

Is there any way to set a widget's opacity in PyGTK?
I know there's a function for windows:

gtk.Window.set_opacity(0.85)

but there seems to be no equivalent for arbitrary widgets.
Anyone have any ideas?

Thanks in advance for your help.

Upvotes: 0

Views: 2093

Answers (2)

tmatth
tmatth

Reputation: 499

It might also be worth looking into pygtkglext for fancier widget stuff.

Upvotes: 0

Alexander Lebedev
Alexander Lebedev

Reputation: 6044

From pygtk reference:

For setting up per-pixel alpha, see gtk.gdk.Screen.get_rgba_colormap(). For making non-toplevel windows translucent, see gtk.gdk.Window.set_composited().

Upvotes: 3

Related Questions