Added get_row_count and show title

svn: r9555
This commit is contained in:
Doug Blank 2007-12-21 18:20:04 +00:00
parent efcc234c0e
commit 104875c5a3

View File

@ -44,6 +44,9 @@ class SimpleTable:
self.__sort_col = None
self.__sort_reverse = False
def get_row_count(self):
return len(self.__rows)
def columns(self, *columns):
"""
Set the columns
@ -193,6 +196,8 @@ class SimpleTable:
#if model_index == sort_index:
# FIXME: what to set here?
model_index += 1
if self.title:
self.simpledoc.paragraph(self.title)
# Make a GUI to put the tree view in
frame = gtk.Frame()
frame.add(treeview)
@ -207,3 +212,4 @@ class SimpleTable:
count += 1
frame.show_all()
self.simpledoc.paragraph("")
self.simpledoc.paragraph("")