[pygtk] Using draw_rectangle with a fill colour

mercado python.dev.9 at gmail.com
Wed Mar 2 03:15:16 WST 2011


On Tue, Mar 1, 2011 at 11:56 AM, Timo <timomlists at gmail.com> wrote:
>>         gc.foreground = gtk.gdk.color_parse("orange")
>
> Try the following line instead:
>        gc.set_foreground(self.get_colormap().alloc_color("#FF8000"))
>
> Cheers,
> Timo

Yes, that works.  Thanks for your help Timo.


More information about the pygtk mailing list