Hi, The following code colorizes a combobox:
cmap = self.win.get_colormap() normal_color = cmap.alloc_color(62737,19052,21984) liststore = gtk.ListStore(str,gtk.gdk.Color) for s in self.simulations: liststore.append([s,normal_color]) self.simulation_combobox = gtk.ComboBox(liststore) cell = gtk.CellRendererText() self.simulation_combobox.pack_start(cell, True) self.simulation_combobox.add_attribute(cell, 'text', 0) self.simulation_combobox.add_attribute(cell, 'cell-background-gdk', 1) Anyway, as show in the figure, there is an unexpected color (dark blue), around the selected cell. http://www.nabble.com/file/p13407620/combobox.bmp Is somebody knows where this color is defined (I precize that the selection prelight color is a light grey) ? Thank you -- View this message in context: http://www.nabble.com/colorized-a-combobox-%28next%29-tf4691132.html#a13407620 Sent from the Gtk+ - Python mailing list archive at Nabble.com. _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
