Hi,
self.builder.get_object('liststore_some_liststore').clear() should work.
You can also do something like this:
model = self.builder.get_object('treeview_some_treeview').get_model()
model.clear()
if you just want to clear the list store linked to a treeview or whatever.
I hope this helps,
Why don't you check out this example?
http://zetcode.com/tutorials/pygtktutorial/advancedwidgets/
I hope this helps,
Zoltán
On 12/12/2011 07:39 PM, b...@b3ns.com wrote:
Hi,
I am figuring out the basics of PyGTK, and I am trying to get a
ListView so I can display a list of usernames. I don't
But the earlier suggestion, namely, using
name = gtk.Buildable.get_name(widget)
should work. This will return the proper name from glade.
Zoltán
Thanks for tip Dieter, but I have tried gtk.Widget.get_name(widget)
function, returns eg GtKEntry for a TextEntry field and GtkLabel for a
label, ie
Hi All,
I would like to create a very primitive source editor based on pygtk,
and I was wondering whether it is possible to fold the code using the
gtksourceview widget. I have looked at the example code, and the
(somewhat dated) documentation, but could not find anything suggesting
that the