Hello all.
I am writing a project which will execute a method of each widget in a form,
based on what type the widget is (ie: executing .deselect() if it's a
checkbox, .delete() if it's an entry ect...) 
i was basically duck typing all the widgets, assuming that if trying a
certain method worked, then it was the type i wanted (running .deselect()
successfully meant that i must have a checkbox)
unfortunately, i realized that many widgets have methods in common, and that
this approach didn't work in some cases.
is there a good way to determine the type of a widget which is not duck
typing?
-- 
View this message in context: 
http://www.nabble.com/Finding-Tkinter-widget-types-tp24291475p24291475.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to