[pygtk] g_signal_stop_emission_by_name equivalent

Christopher Backhouse cjbackhouse at gmail.com
Sat Jan 6 01:01:48 WST 2007


Sorry for the stupid question...
What is the python equivalent of g_signal_stop_emission_by_name() ?

And to prevent me requiring followup questions, will the following work 
as a method to ensure my gtk.Entry accepts only numbers?


def onInsertText(widget,text,foo,bar):
	try:
		int(text)
	except ValueError:
		#insert correct name of function here...
		gobject.stop_emission_by_name(widget,'insert_text')


More information about the pygtk mailing list