

def theme_create(self, themename, parent=None, settings=None):
    'Creates a new theme.\n\n        It is an error if themename already exists. If parent is\n        specified, the new theme will inherit styles, elements and\n        layouts from the specified parent theme. If settings are present,\n        they are expected to have the same syntax used for theme_settings.'
    script = (_script_from_settings(settings) if settings else '')
    if parent:
        self.tk.call(self._name, 'theme', 'create', themename, '-parent', parent, '-settings', script)
    else:
        self.tk.call(self._name, 'theme', 'create', themename, '-settings', script)

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py Style.theme_create/original