Il Tue, 31 Jan 2006 00:07:37 +0100 (CET), [EMAIL PROTECTED] ha scritto: > I'm not able to find a CellRenderButton to put it inside a > TreeView. Somebody says that it's not a good solution and that's why it > doesn't exist. Mmm, I really don't understand why... I need it!
I had a similar problem, I wanted model-unrelated checkbuttons for each row in my model, and I didn't like the treeview multi-row selection system. So I did it this way: - I created a two-column gtk.Table - I put the TreeView in the first table, and the checkbuttons (but you can use any widget, of course) in the second table - I synced the checkbuttons size to the tv cell size by getting the cell height via cell_get_size() method of TreeViewColumn, so that the side-widgets are perfectly aligned to the tv cells. - I used the row* signals of the model (mine was a ListStore, I don't know if it works for TreeStore as well, it might be harder) to resize the table and reorder-delete-insert the side-widgets as the model (and thus the view) changes. -- Alan Franzoni <[EMAIL PROTECTED]> - Togli .xyz dalla mia email per contattarmi. To contact me, remove .xyz from my email address. - GPG Key Fingerprint: 5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
