[pygtk] The "row-changed" in gtk.TreeModel Signal

Shehnaaz Kagdi shehnaazkagdi at yahoo.com
Tue Aug 8 00:10:26 WST 2006


Hi All,

1) I have following code
self.liststore = gtk.ListStore(str, str, str,str)
treeview = gtk.TreeView(self.liststore)

2) Whenever this happens -
self.liststore.append(["john","smith",
"blabla","bla"]) 
I would like the treeview to display the latest
data/row in the liststore

3) From documentation: I believe this is what I am
looking for - The "row-changed" gtk.TreeModel Signal
def callback(treemodel, path, iter, user_param1, ...

4) My question: How does the callback function update
the treeview?  What functionalities need to be
implemented in the callback function? Is there a
simple way to do this?

I will be grateful for any help/ref.

Thanks in advance.
- SK

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the pygtk mailing list