In <mailman.877.1310350451.1164.python-l...@python.org> Anthony Papillion <papill...@gmail.com> writes:
> So I've built a UI with Glade and have loaded it using the standard > Python code. In my UI, I have a textfield called txtUsername. How do I > get and set the text in this field from my Python code? 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. So, assuming you have access to an interactive shell within your Glade environment, you can do this: dir(txtUsername) and it will print a list of methods that are defined by that object. Hopefully one of them will be called something helpful like set_text() or set_property(). Once you know the method name, you might try a Google search to determine the exact usage and arguments. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- http://mail.python.org/mailman/listinfo/python-list