![]() |
2008-02-18
, 09:33
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#2
|
![]() |
2008-02-19
, 12:32
|
Posts: 35 |
Thanked: 5 times |
Joined on Sep 2007
|
#3
|
![]() |
2008-02-19
, 12:41
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#4
|
Hi, did you get it working? Can you explain what you did to us?
How would I setup a frame background so that it is semitransparent? I'm thinking about desktop homeitem now. Hmm... I think I have to test what happens when I add labels on that frame box too.
![]() |
2008-02-20
, 10:51
|
Posts: 35 |
Thanked: 5 times |
Joined on Sep 2007
|
#5
|
![]() |
2008-02-20
, 11:20
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#6
|
rgba = gtk.gdk.Screen().get_rgba_colormap()
e.set_colormap(rgba)
![]() |
2008-02-20
, 11:34
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#7
|
I tried to fiddle with the transparency too. There are some examples for python applications about it. Though not directly for home applets. What I found out is that in one step I was setting a rgba colormap but that method did not work. Here are few lines as an example:
e = gtk.EventBox()
rgba = gtk.gdk.Screen().get_rgba_colormap()
e.set_colormap(rgba)
So the code breaks on that last line. and the error I get is:
TypeError: GtkWidget.set_colormap() argument 1 must be gtk.gdk.Colormap, not None
So maybe the colormap methods are not ready or that particular way of coding cannot be applied in this context. I don't know.
Returns : a gtk.gdk.Colormap for use with windows with an alpha channel or None if the capability is not available.
![]() |
2008-02-20
, 13:46
|
Posts: 35 |
Thanked: 5 times |
Joined on Sep 2007
|
#8
|
![]() |
2008-02-20
, 15:18
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#9
|
![]() |
2008-02-20
, 22:01
|
Posts: 25 |
Thanked: 8 times |
Joined on Feb 2008
|
#10
|
However, I'm not getting anywhere in actually making it work. Here's my best guess (in Python):
Thanks!