Most viewed recipes tagged "selector"http://code.activestate.com/recipes/tags/selector/views/2017-01-24T20:45:34-08:00ActiveState Code RecipesTkinter selectors (Python) 2017-01-24T20:45:34-08:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580738-tkinter-selectors/ <p style="color: grey"> Python recipe 580738 by <a href="/recipes/users/4189907/">Miguel Martínez López</a> (<a href="/recipes/tags/selector/">selector</a>, <a href="/recipes/tags/tkinter/">tkinter</a>). Revision 6. </p> <p>Tkinter selectors like beautifulsoup selectors or jquery selectors.</p> <p>It makes easy to select elements at runtime. The selectors use the same syntax than the option database.</p> <p>Please let me now if you find a bug.</p> <p>This is the provided API:</p> <pre class="prettyprint"><code>toplevel_titles(widget) window_titles(widget) full_name_of_widgets(root) find_toplevel_by_title(widget, title) find_widgets_by_name(root, name) find_widget_by_name(root, name) find_widgets_by_class(root, class_) find_widget_by_class(root, class_) find(root, selector, callback, async=True) find_all(root, selector, callback, async=True) config(root, selector, **kwargs) config_async(root, selector, **kwargs) config_all(root, selector, **kwargs) config_all_async(root, selector, **kwargs) tk_print(root, name=True, class_= True, indent="\t") </code></pre>