Added get_row_count and show title
svn: r9555
This commit is contained in:
parent
efcc234c0e
commit
104875c5a3
@ -44,6 +44,9 @@ class SimpleTable:
|
|||||||
self.__sort_col = None
|
self.__sort_col = None
|
||||||
self.__sort_reverse = False
|
self.__sort_reverse = False
|
||||||
|
|
||||||
|
def get_row_count(self):
|
||||||
|
return len(self.__rows)
|
||||||
|
|
||||||
def columns(self, *columns):
|
def columns(self, *columns):
|
||||||
"""
|
"""
|
||||||
Set the columns
|
Set the columns
|
||||||
@ -193,6 +196,8 @@ class SimpleTable:
|
|||||||
#if model_index == sort_index:
|
#if model_index == sort_index:
|
||||||
# FIXME: what to set here?
|
# FIXME: what to set here?
|
||||||
model_index += 1
|
model_index += 1
|
||||||
|
if self.title:
|
||||||
|
self.simpledoc.paragraph(self.title)
|
||||||
# Make a GUI to put the tree view in
|
# Make a GUI to put the tree view in
|
||||||
frame = gtk.Frame()
|
frame = gtk.Frame()
|
||||||
frame.add(treeview)
|
frame.add(treeview)
|
||||||
@ -207,3 +212,4 @@ class SimpleTable:
|
|||||||
count += 1
|
count += 1
|
||||||
frame.show_all()
|
frame.show_all()
|
||||||
self.simpledoc.paragraph("")
|
self.simpledoc.paragraph("")
|
||||||
|
self.simpledoc.paragraph("")
|
||||||
|
Loading…
Reference in New Issue
Block a user