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 working!

On Thu, Dec 24, 2009 at 2:50 PM, Brent Chiodo <[email protected]> wrote:

> 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 shown. They are both
> packed into gtk.EventBox's which is packed into a gtk.VBox which is
> added to the widget itself.
>
> How would I go about making everything but the actual image
> transparent? (the two images are transparent png's so I do not believe
> that is what is causing the black opaque boxes).
>
> If you need the actually code (which is a bit sloppy at the moment)
> I'll be glad to clean it up and send it along.
>
> You've been a great help, thanks so much!
>
> P.S. Merry Christmas!
>
> On 12/24/09, Anderson Lizardo <[email protected]> wrote:
> > On Thu, Dec 24, 2009 at 1:40 PM, Anderson Lizardo
> > <[email protected]> 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 "def do_realize(self)"
> >
> > I forgot to mention: you should not connect these methods
> > (do_expose_event() and do_realize()) to any signal, they are "virtual
> > methods" called automatically by PyGTK.
> >
> > I got the idea partially from
> > http://ralph-glass.homepage.t-online.de/clock/clock.py and from
> > interpreting the example clock widget C code.
> >
> > Regards,
> > --
> > Anderson Lizardo
> > OpenBossa Labs - INdT
> > Manaus - Brazil
> >
>
>
> --
> Best Regards,
>
> Brent Chiodo
>



-- 
Best Regards,

Brent Chiodo
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to