[pygtk] widget vs. entry
Christopher Spears
cspears2002 at yahoo.com
Fri Jul 7 08:42:44 WST 2006
In the PyGTK tutorial, I came across this function:
def enter_callback(self, widget, entry):
entry_text = entry.get_text()
print "Entry contents: %s\n" % entry_text
This function prints text that was entered into an
entry. I'm confused by the parameters. Isn't the
entry also the widget? The webpage I am referring to
is:
http://www.pygtk.org/pygtk2tutorial/sec-TextEntries.html
More information about the pygtk
mailing list