View Single Post
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#17
Originally Posted by daperl View Post
Yes, gtk.ComboBox implements the gtk.CellLayout interface. It's mildly complex, so maybe start at this tutorial.
Yeah! It worked. Just for the record, this is what I did:

When defining the combobox:

self.history = gtk.ListStore(str)
self.combohist = gtk.ComboBox(self.history)
self.histtxt = gtk.CellRendererText()
self.combohist.pack_start(self.histtxt, True)
self.combohist.add_attribute(self.histtxt, 'text', 0)

And then changing the font is easy:

self.histtxt.set_property('font',"sans 18")

Thanks!!!!!!
L.