Re: [pygtk] updating with combo-entry
Original message Date : Thu, 31 Oct 2002 09:52:14 -0300 De : Christian Reis [EMAIL PROTECTED] Objet : Re: [pygtk] updating with combo-entry A : David M. Cook [EMAIL PROTECTED], [EMAIL PROTECTED] On Wed, Oct 30, 2002 at 04:40:11PM -0800, David M. Cook wrote: On Wed, Oct 30, 2002 at 11:45:23AM +0100, mekkaoui omar wrote: I would like to update information on a window after selecting an entry in the combo. But, I don't know which signal I will use to associate it to an updating function. The simplest way is to add a button to do this, of course, but to save mouse clicks the following seems to work for me: What's wrong with combo.entry.connect(insert_text, my_handler) combo.entry.connect(delete_text, my_handler) ? For this moment, I opt for using a button to update information. In the futur, I prefer to update using mouse button like David M. Cook hase suggested. Thanks to all for their help. Omar Mekkaoui THEMA - University de Cergy-Pontoise Economie des Transports ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] updating with combo-entry
On Thu, Oct 31, 2002 at 05:45:54PM -0800, David M. Cook wrote: On Thu, Oct 31, 2002 at 09:52:14AM -0300, Christian Reis wrote: What's wrong with combo.entry.connect(insert_text, my_handler) combo.entry.connect(delete_text, my_handler) Won't this signal be send everytime a character is inserted or deleted? I'm not sure that's what he wants. Yeah, you're right. But it's guaranteed to work and is simple to filter. The truth is Combo and OptionMenu in gtk-1.2 suck. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] updating with combo-entry
On Fri, Nov 01, 2002 at 03:34:41PM +0100, mekkaoui omar wrote: What's wrong with combo.entry.connect(insert_text, my_handler) combo.entry.connect(delete_text, my_handler) ? For this moment, I opt for using a button to update information. In the futur, I prefer to update using mouse button like David M. Cook hase suggested. Note that a button for updating information is bad usability, and the mouse button is probably a good solution to this problem, though I see issues with it being overly complex. The real solution is (gasp, Johan) to upgrade to gtk-1.2, which provides decent signals for this case. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] updating with combo-entry
On Wed, Oct 30, 2002 at 04:40:11PM -0800, David M. Cook wrote: On Wed, Oct 30, 2002 at 11:45:23AM +0100, mekkaoui omar wrote: I would like to update information on a window after selecting an entry in the combo. But, I don't know which signal I will use to associate it to an updating function. The simplest way is to add a button to do this, of course, but to save mouse clicks the following seems to work for me: What's wrong with combo.entry.connect(insert_text, my_handler) combo.entry.connect(delete_text, my_handler) ? Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] updating with combo-entry
Hi, I use glade to develop my application. I would like to update information on a window after selecting an entry in the combo. But, I don't know which signal I will use to associate it to an updating function. Omar Mekkaoui THEMA - université de Cergy-Pontoise Economie des Transports ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] updating with combo-entry
On Wed, Oct 30, 2002 at 11:11:45AM +0100, mekkaoui omar wrote: I would like to update information on a window after selecting an entry in the combo. But, I don't know which signal I will use to associate it to an updating function. Heh. You're starting to discover things that nobody is supposed to know. There is no direct signal for Combo changed, but you can catch the Combo's entry's insert_text/delete_text or changed and it will work, though it will call your callback many times. The Combo is a container, wrapping a button and an entry, and only the entry actually holds the state the Combo is in. So: combo.entry.connect(changed, my_callback) And be glad you're not using an OptionMeny, because there *is no such thing* for gtk1.2's OM. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] updating with combo-entry
Hi, I use glade to develop my application. I would like to update information on a window after selecting an entry in the combo. But, I don't know which signal I will use to associate it to an updating function. Thanks in advance. Omar Mekkaoui THEMA - université de Cergy-Pontoise Economie des Transports Tel : (33) 1 34 25 63 16 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/