PDA

View Full Version : Glade table



Frozen Forest
February 13th, 2012, 06:35 PM
How do you add an table in gtk, been looking for it but can't find it. Attached an image with the options that are available, is there something i missed, it's in Swedish but I think the images are the same. Looking for table where it's possible to sort by column, similar to how deluge handle torrent in there gtk ui.

deathadder
February 14th, 2012, 11:01 AM
You'd need to make use of a TreeView and ListStore and then, if I remember correctly, write a handler to sort the column. Don't quote me on that though!

http://www.pygtk.org/articles/application-pygtk-glade/Building_an_Application_with_PyGTK_and_Glade.htm