[pygtk] clearing combo box value

2011-12-13 Thread Arun p das
From the text box i am reading key values and appending into store and later i am setting the combobox model as the store i created. The problem here is all values are repeating along with the added value ( list of values are duplicating inside the combobox ) what to do with this? Is there any

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

2011-12-13 Thread Arun p das
I am new to pygtk. currently i am doing one application using pygtk and glade. my Question is How to clear/delete all values from the gtk.Liststore. I am using the liststore as model for combobox. ___ pygtk mailing list pygtk@daa.com.au

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] How to clear/delete all values from the gtk.Liststore

2011-12-13 Thread Pietro Battiston
Il giorno mar, 13/12/2011 alle 20.44 +0530, Arun p das ha scritto: I am new to pygtk. currently i am doing one application using pygtk and glade. my Question is How to clear/delete all values from the gtk.Liststore. How about gtk.ListStore.clear() and, more in general, reading the documentation

[pygtk] 2.24.8 issue on win32 with 16bpp display

2011-12-13 Thread EricHoffman
I've recently updated my app to use 2.24.8 and receive the following failure on one of my test boxes which is set to 16bpp display: gdk_win32_pixmap_new: depth = 16 not supported. Google pointed me to the changeset which seems to have introduced this issue: commit

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

2011-12-13 Thread Yann Leboulanger
Le 13/12/2011 16:14, Arun p das a écrit : I am new to pygtk. currently i am doing one application using pygtk and glade. my Question is How to clear/delete all values from the gtk.Liststore. I am using the liststore as model for combobox. http://pygtk.org/docs/pygtk/class-gtkliststore.html

Re: [pygtk] 2.24.8 issue on win32 with 16bpp display

2011-12-13 Thread Dieter Verfaillie
On Mon, 12 Dec 2011 13:08:43 -0800 (PST), EricHoffman wrote: I've recently updated my app to use 2.24.8 and receive the following failure on one of my test boxes which is set to 16bpp display: gdk_win32_pixmap_new: depth = 16 not supported. Google pointed me to the changeset which seems to