Lines Matching defs:layout
133 def _format_layoutlist(layout, indent=0, indent_size=2):
134 """Formats a layout list so we can pass the result to ttk::style
135 layout and ttk::style settings. Note that the layout doesn't have to
163 for layout_elem in layout:
199 if 'layout' in opts: # format 'layout' which may be empty
200 if not opts['layout']:
203 s, _ = _format_layoutlist(opts['layout'])
204 script.append("ttk::style layout %s {\n%s\n}" % (name, s))
245 """Construct a list from the tuple returned by ttk::layout, this is
392 def layout(self, style, layoutspec=None):
393 """Define the widget layout for given style. If layoutspec is
394 omitted, return the layout specification for given style.
399 a tuple where the first item is the layout name and the second item
404 A layout can contain the value None, if takes no options, or
406 The layout mechanism uses a simplified version of the pack
422 where the first item is the layout name, and the other
427 elif layoutspec is not None: # will disable the layout ({}, '', etc)
429 # when calling layout(style) later
432 self.tk.call(self._name, "layout", style, lspec))
476 keys 'configure', 'map', 'layout' and 'element create' and they
478 configure, map, layout and element_create respectively."""