1

I have a simple GUI build with Glade 3 and I have a gtk.Entry widget with name "input_entry1". I would like to instantiate new gtk.Entry widget called "input_entry2" but I would like to do it simply in Python code, not with Glade, but I can't figure out how to set a name to instance of widget (or create a named widget).

Thanks a lot, Tomas

1 Answer 1

1

In C you could name your widgets using gtk_widget_set_name function. I think in Python you can use set_name method:

http://www.pygtk.org/pygtk2tutorial/sec-WidgetNameMethods.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.