

def heading(self, column, option=None, **kw):
    'Query or modify the heading options for the specified column.\n\n        If kw is not given, returns a dict of the heading option values. If\n        option is specified then the value for that option is returned.\n        Otherwise, sets the options to the corresponding values.\n\n        Valid options/values are:\n            text: text\n                The text to display in the column heading\n            image: image_name\n                Specifies an image to display to the right of the column\n                heading\n            anchor: anchor\n                Specifies how the heading text should be aligned. One of\n                the standard Tk anchor values\n            command: callback\n                A callback to be invoked when the heading label is\n                pressed.\n\n        To configure the tree column heading, call this with column = "#0" '
    cmd = kw.get('command')
    if (cmd and (not isinstance(cmd, basestring))):
        kw['command'] = self.master.register(cmd, self._substitute)
    if (option is not None):
        kw[option] = None
    return _val_or_dict(self.tk, kw, self._w, 'heading', column)

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py Treeview.heading/original