Re: [pygtk] How to clear/delete all values from the gtk.Liststore

2011-12-13 Thread Zoltán Vörös
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,

Re: [pygtk] Using TreeView in PyGTK

2011-12-12 Thread Zoltán Vörös
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

Re: [pygtk] PyGtk / Glade - how to get name of textEntry

2011-09-27 Thread Zoltán Vörös
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

[pygtk] gtksourceview2 code folding

2011-08-21 Thread Zoltán Vörös
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