

def layout(self, style, layoutspec=None):
    'Define the widget layout for given style. If layoutspec is\n        omitted, return the layout specification for given style.\n\n        layoutspec is expected to be a list or an object different than\n        None that evaluates to False if you want to "turn off" that style.\n        If it is a list (or tuple, or something else), each item should be\n        a tuple where the first item is the layout name and the second item\n        should have the format described below:\n\n        LAYOUTS\n\n            A layout can contain the value None, if takes no options, or\n            a dict of options specifying how to arrange the element.\n            The layout mechanism uses a simplified version of the pack\n            geometry manager: given an initial cavity, each element is\n            allocated a parcel. Valid options/values are:\n\n                side: whichside\n                    Specifies which side of the cavity to place the\n                    element; one of top, right, bottom or left. If\n                    omitted, the element occupies the entire cavity.\n\n                sticky: nswe\n                    Specifies where the element is placed inside its\n                    allocated parcel.\n\n                children: [sublayout... ]\n                    Specifies a list of elements to place inside the\n                    element. Each element is a tuple (or other sequence)\n                    where the first item is the layout name, and the other\n                    is a LAYOUT.'
    lspec = None
    if layoutspec:
        lspec = _format_layoutlist(layoutspec)[0]
    elif (layoutspec is not None):
        lspec = 'null'
    return _list_from_layouttuple(self.tk, layoutspec.tk.call(self._name, 'layout', style, lspec))

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py Style.layout/VarMisuse@60/597 `self`->`layoutspec`