How to get or set the text of a textfield? - SOLVED

Anthony Papillion papillion at
Mon Jul 11 06:09:27 CEST 2011

> I don't know anything about Glade, so I can't answer your question
> definitively.  However, as a general rule, you can use the dir() builtin
> function to see what methods are defined by an object.

Hi John,

Thanks for the input and it looks like it's pretty simple. Basically, I
can access the properties of objects like:


So, to solve my question, I'd just use:

self.txtUsername.set_text('Whatever I want')


enteredText = self.txtUsername.get_text()

Pretty simple and this actually solves ALL of my Glade problems. I'm

Thanks for the direction!


More information about the Python-list mailing list