On Fri, 31 Jan 2003 12:26:46 -0400
"Pablo Endres" <[EMAIL PROTECTED]> wrote:
> How do we use the GdkColormap.alloc_color, I used to passwd the color string
>on 0.6.x
> but now it doesn't work.
>
> Checked the tutorial a moeraki.com, but that method doesn't work either.
>
> C:\tmp\ssemamonWin32>python Ssemamon.py
> Starting sSemamon on port: 8008
> Starting Everthing
> gui.py:135: DeprecationWarning: use GdkColormap.alloc_color
> self.gc.background = self.colormap.alloc("white")
In gtk2.0(pygtk 1.99.x) the preferred function is alloc_color:
self.gc.background = self.colormap.alloc_color("white")
though, unless you specifically need to manipulate the gc, you can just do:
self.modify_bg(self.get_colormap().alloc_color("white"))
--
I cannot think why the whole bed of the ocean is
not one solid mass of oysters, so prolific they seem. Ah,
I am wandering! Strange how the brain controls the brain!
-- Sherlock Holmes in "The Dying Detective"
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/