Skip to content Skip to sidebar Skip to footer

Pygtk Treecolumns All Exact Duplicates

I wrote a simple PyGTK script to show some basic process information in a TreeView: import gtk import os import pwd import grp class ProcParser: ''' Parses the status file

Solution 1:

for append on treview you should do

    rendererText = gtk.CellRendererText()
    tvcols = ["Name", "Pid", "User", "Group"]

    for num, name in enumerate(tvcols):
        column_name = gtk.TreeViewColumn(name ,rendererText, text=num)
        self.tree.append_column(column_name)

Post a Comment for "Pygtk Treecolumns All Exact Duplicates"