Andrew S. Townley wrote:
Hello,You probably want to pack two cell renderers into your tree view column. The first should be a text cell renderer, pointing at the appropriate model column for the text you want to display, and should be packed with "expand" set to true, so that it takes up any extra space.
I checked the list archives about this, but I'm not having any luck with
finding it. Basically, thanks to a post from James, I've got everything
working *almost* the way I want.
Here's what I'm doing:
I want to have a simple list of items in the TreeView that have labels
that are left-justified and icons that are right justified. I currently
have a ListStore model of the data and icons, and everything is working
fine, but the icon appears in the middle of the list rather than along
the right side.
Is there any way to right-align a specific cell renderer? I tried with
more than one column, but according to the set_max_width API
documentation, if the column is the last one, it is automatically
expanded.
Anyone have any ideas?
Then pack a pixbuf cell renderer without expand set. This should give you text on the left with an icon on the right.
James.
--
Email: [EMAIL PROTECTED] | Linux.conf.au http://linux.conf.au/
WWW: http://www.daa.com.au/~james/ | Jan 22-25 Perth, Western Australia.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
