[Python 1.6a2, pygtk-0.7.0, gtk+1.2.7, Suse Linux 6.1(2.2.11), pentium]
How does one simply get a color object to set the background of a widget?
I.e.:
from _gtk import *
from GTK import *
w = GtkWindow(WINDOW_TOPLEVEL)
clist = GtkCList(1, ('name'))
clist.append(['George Young'])
w.add(clist)
w.showall()
cm = w.get_colormap()
blue_color = cm.alloc((10, 10, 200)) #segmentation fault
blue_color = cm.alloc('blue') #segmentation fault
!! how do I get a GtkColor that is, e.g., 'blue'? I would rather use names
than rgb values, but anything would be helpful.
clist.set_background(blue_color)
Thanks,
George
George Young, Rm. L-204 [EMAIL PROTECTED]
MIT Lincoln Laboratory
244 Wood St.
Lexington, Massachusetts 02420-9108 (781) 981-2756
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]