Reputation: 917
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
Reputation: 499
It might also be worth looking into pygtkglext for fancier widget stuff.
Upvotes: 0
Reputation: 6044
For setting up per-pixel alpha, see
gtk.gdk.Screen.get_rgba_colormap()
. For making non-toplevel windows translucent, seegtk.gdk.Window.set_composited()
.
Upvotes: 3