Message-ID: <[EMAIL PROTECTED]> > Introspection allows you to specify the signal handlers in a natural > way in your pygtk code and have them connected automatically.
> Controller classes automatically connect signals based on method names > that match patterns like on_widget__signal and after_widget__signal. > There is no need to specify the signal handlers in Glade since this > information is not used. To connect to another widget or signal you > just write a new method with the appropriate name and no changes are > needed to the Glade file. This is really great advice, I've recently switched from using a method like in the pygtk faq to this method and it's much cleaner and easier. 1) You get warnings for python typos because the connection code needs a valid widget name and signal name. 2) It's much quicker to add new methods - there's no need to keep your handlers declared in glade in sync with your python source. Beautiful! Stephen. -- Stephen Kennedy <[EMAIL PROTECTED]> http://meld.sf.net visual diff and merge _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
