[pygtk] limit width of gtk.ComboBox

2008-10-01 Thread Karl Ostmo
From the PyGTK FAQ (http://faq.pygtk.org/index.py?req=all#12.2), it appears that there is not a way to limit the horizontal space the widget requests. I am aware of the set_ellipsize() method of gtk.Label ( http://www.pygtk.org/docs/pygtk/class-gtklabel.html#method-gtklabel--set-ellipsize), but

Re: [pygtk] limit width of gtk.ComboBox

2008-10-01 Thread Casey McGinty
I think this is what you want. cell = gtk.CellRendererText() cell.props.ellipsize = pango.ELLIPSIZE_END ls = gtk.ListStore( object) cb = gtk.ComboBox( ls) cb.pack_start( cell, True) - Casey ___ pygtk mailing list