All pastes #63773 Raw Edit

mashj

public python v1 · immutable
#63773 ·published 2006-06-10 17:03 UTC
rendered paste body
   ## add all the list columns     for i, cn in enumerate (('Section', 'Key', 'Value','Description')):             self.AddSettingsColumn(cn, i)   def AddSettingsColumn(self,title,colID):        column = gtk.TreeViewColumn(title, gtk.CellRendererText(), text=colID )        column.set_resizable(True)        column.set_sort_column_id(colID)        column.set_sort_order(gtk.SORT_ASCENDING)        print colID  # outputs 0 1 2 3        if colID == 1:            print "Want this column to be selected with the sort arrow showing"            #column.set_sort_order(gtk.SORT_ASCENDING)            column.set_sort_indicator(True)             #column.set_sort_column_id(colID)        self.treeSettings.append_column(column)        return None