def __init__(self, master=None, **kw):
        master = _setup_master(master)
        global _TKTABLE_LOADED
        if not _TKTABLE_LOADED:
            tktable_lib = os.environ.get('TKTABLE_LIBRARY')
            if tktable_lib:
                master.tk.eval('global auto_path; '
                               'lappend auto_path {%s}' % tktable_lib)
            master.tk.call('package', 'require', 'Tktable')
            _TKTABLE_LOADED = True
        # force minimum padding
        if not 'padx' in kw:
            kw['padx'] = 1
        if not 'pady' in kw:
            kw['pady'] = 1
        tkinter.Widget.__init__(self, master, 'table', kw)
        self.contextMenuClick = "<Button-2>" if sys.platform=="darwin" else "<Button-3>"
dataset/ETHPy150Open Arelle/Arelle/arelle/TkTableWrapper.py/Table.__init__/original