[pygtk] Inserting items into ComboBox

2009-03-03 Thread Johannes Bauer
Hi list, I've tried for an hour to insert items into a ComboBox - but just don't know how. append_text and its variants (insert_text, modify_text, prepend_text) don't seem to do the job as they're (from what I could read in the GTK documentation) only available for a specialized list-type

Re: [pygtk] Inserting items into ComboBox

2009-03-03 Thread Walter Leibbrandt
Hi, Johannes Bauer wrote: Hi list, I've tried for an hour to insert items into a ComboBox - but just don't know how. append_text and its variants (insert_text, modify_text, prepend_text) don't seem to do the job as they're (from what I could read in the GTK documentation) only available for

Re: [pygtk] Inserting items into ComboBox

2009-03-03 Thread Johannes Bauer
Walter Leibbrandt schrieb: The *_text() methods are only applicable if the ComboBox was created with gtk.combo_box_new_text() or gtk.combo_box_entry_new_text(). If the ComboBox was created in another way (such as in Glade), you have to initialize it yourself: def

Re: [pygtk] Inserting items into ComboBox

2009-03-03 Thread Timo
Johannes Bauer schreef: Walter Leibbrandt schrieb: The *_text() methods are only applicable if the ComboBox was created with gtk.combo_box_new_text() or gtk.combo_box_entry_new_text(). If the ComboBox was created in another way (such as in Glade), you have to initialize it yourself:

Re: [pygtk] Inserting items into ComboBox

2009-03-03 Thread Olav Lavell
Op dinsdag 03-03-2009 om 17:07 uur [tijdzone +0100], schreef Johannes Bauer: [..] Is there no easier way than manually creating the combobox at runtime? Can I somehow convince Glade to create a combobox in the variant you presented? Perhaps what confuses you is the fact that there is no real

[pygtk] main files

2009-03-03 Thread Peyman
Hi I've developed my glade project using python. I then use gladex to turn the simulator.glade file into two separate files A simulator.py file launches the GUI A simulator_callbacks.py file has all of the callbacks of the widgets The problem is that the simulator_callbacks.py file is HUGE

Re: [pygtk] main files

2009-03-03 Thread Steve McClure
On Mar 3, 2009, at 7:51 PM, Peyman wrote: Hi I've developed my glade project using python. I then use gladex to turn the simulator.glade file into two separate files A simulator.py file launches the GUI A simulator_callbacks.py file has all of the callbacks of the widgets The problem

Re: [pygtk] date changed signal ?

2009-03-03 Thread Darren Hart
On Mon, Mar 2, 2009 at 12:01 AM, Walter Leibbrandt wal...@translate.org.za wrote: Hi, Darren Hart wrote: I have a TreeView that renders rows differently depending on the state of the object being represented.  This state is in part dependent on the date.  Rather than calculate the state