No subject
Sun Aug 31 18:50:12 WST 2008
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 is there a method that will accomplish the same thing for Combo Boxes?
I have some really wide text entries that I wouldn't mind popping out at
full width, but I would like for the combo box itself to have a fixed width
and truncate the currently selected text.
I suspect there might be a way to write a custom CellRenderer to pull off
this effect, but I'm not sure how to use it with the ComboBox.
Thanks,
Karl
------=_Part_8705_18747636.1222882208568
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div dir="ltr">From the PyGTK FAQ (<a href="http://faq.pygtk.org/index.py?req=all#12.2">http://faq.pygtk.org/index.py?req=all#12.2</a>), it appears that there is not a way to limit the horizontal space the widget requests.<br>
<br>I am aware of the set_ellipsize() method of gtk.Label
(<a href="http://www.pygtk.org/docs/pygtk/class-gtklabel.html#method-gtklabel--set-ellipsize">http://www.pygtk.org/docs/pygtk/class-gtklabel.html#method-gtklabel--set-ellipsize</a>),
but is there a method that will accomplish the same thing for Combo Boxes? I have some really wide text entries that I wouldn't mind popping out at full width, but I would like for the combo box itself to have a fixed width and truncate the currently selected text.<br>
<br>I suspect there might be a way to write a custom CellRenderer to pull off this effect, but I'm not sure how to use it with the ComboBox.<br><br>Thanks,<br>Karl<br></div>
------=_Part_8705_18747636.1222882208568--
More information about the pygtk
mailing list