Re: Semi-transparent background for Desktop Widget (Python + Cairo)

2010-01-05 Thread Brent Chiodo
Nevermind, I figured out how to do this. What was basically required was using cairo itself to draw the images (IImageSurface's) to the screen where the eventboxes were, instead of trying to use gtk.Image's. Once I realized that, it was actually quite easy :) Thanks for the help getting it all w

Re: Semi-transparent background for Desktop Widget (Python + Cairo)

2009-12-24 Thread Brent Chiodo
Thank you very much! It is working well, now. There is only one minor issue: When I do this the widget is nicely transparent, but what I'm packing into the widget remains opaque. I took a screenshot: http://img192.imageshack.us/img192/5650/cairo.png What is going on is: there are two gtk.Image's

Re: Semi-transparent background for Desktop Widget (Python + Cairo)

2009-12-24 Thread Anderson Lizardo
On Thu, Dec 24, 2009 at 1:40 PM, Anderson Lizardo wrote: > * Use do_expose_event() and do_realize() methods instead of realize() > and screen_changed() ones you used (just rename "def expose(self, > widget, event)" to "def do_expose_event(self, event)" and "def > screen_changed(self, widget)" to "

Re: Semi-transparent background for Desktop Widget (Python + Cairo)

2009-12-24 Thread Anderson Lizardo
Hi, On Wed, Dec 23, 2009 at 5:28 PM, Brent Chiodo wrote: > Hi, > > The code I've been looking at is a fairly simple widget in Extras called > countdown-home. 95% of it is "fluff" and has nothing to do with this problem > so I've attached a working Python Desktop Widget (very simple, just a couple

Re: Semi-transparent background for Desktop Widget (Python + Cairo)

2009-12-23 Thread Brent Chiodo
Hi, The code I've been looking at is a fairly simple widget in Extras called countdown-home. 95% of it is "fluff" and has nothing to do with this problem so I've attached a working Python Desktop Widget (very simple, just a couple gtk.Label's). countdown-home is available from here: http://reposi

Re: Semi-transparent background for Desktop Widget (Python + Cairo)

2009-12-23 Thread Marc Ordinas i Llopis
On 23/12/09 21:43, Anderson Lizardo wrote: > On Sat, Dec 19, 2009 at 3:41 PM, Brent Chiodo wrote: > >> Hi, >> >> I'm trying to make the background of a Desktop Widget semi-transparent using >> the cairo graphics library. The widget is written in Python and the only >> examples of this I've fou

Re: Semi-transparent background for Desktop Widget (Python + Cairo)

2009-12-23 Thread Anderson Lizardo
On Sat, Dec 19, 2009 at 3:41 PM, Brent Chiodo wrote: > Hi, > > I'm trying to make the background of a Desktop Widget semi-transparent using > the cairo graphics library. The widget is written in Python and the only > examples of this I've found are using C (I don't know much C -- I wasn't > even a

Re: Semi-transparent background for Desktop Widget (Python + Cairo)

2009-12-23 Thread Brent Chiodo
Hello Marc, Thank you for the reply. I looked at that webpage but am still having trouble with making a widget (partially) transparent. I even went back and looked at Khertan's widgets for Maemo 4 and tried to translate it over to Maemo 5. Everything went smoothly until I tried self.show_all() on

Re: Semi-transparent background for Desktop Widget (Python + Cairo)

2009-12-21 Thread Marc Ordinas i Llopis
Hi, On 19/12/09 20:41, Brent Chiodo wrote: Hi, I'm trying to make the background of a Desktop Widget semi-transparent using the cairo graphics library. The widget is written in Python and the only examples of this I've found are using C (I don't know much C -- I wasn't even able to apply the

Semi-transparent background for Desktop Widget (Python + Cairo)

2009-12-19 Thread Brent Chiodo
Hi, I'm trying to make the background of a Desktop Widget semi-transparent using the cairo graphics library. The widget is written in Python and the only examples of this I've found are using C (I don't know much C -- I wasn't even able to apply the examples to Python). This is the current code (