[pygtk] Drawing on custom widgets with colour

Tuomas Launiainen tuomas.launiainen at iki.fi
Fri Jul 27 18:08:55 WST 2007


"Gian Mario Tagliaretti" <gianmt at gnome.org> writes:

> 2007/7/26, Tuomas Launiainen <tuomas.launiainen at iki.fi>:
>
> Hi Tuomas,
>
>> I'm experimenting with custom widgets in pygtk, and I can't get
>> drawing to work with colours. I'm using the following method to do
>> the actual drawing:
>
> Sorry for the quick answer, I didn't read the whole code but for
> drawing operations you will better use cairo, since you use 2.8 cairo
> is available and it's easier to use and have fun.

Using cairo would indeed be easier and would also fix the problem, but
I'm developing code that needs to run on the Nokia N800 internet tablet
as well. Because the N800 does not support cairo, using it is not an
option.

-- 
Tuomas Launiainen


More information about the pygtk mailing list