124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
return [sg.Image(data=img_fn, **size)]
if img_fn.find(".") > 0:
return [sg.Image(filename=re.sub("[^/]+$", img_fn, pmd.fn), **size)]
return []
def plugin_entry(pmd, plugin_states):
""" checkbox for plugin name """
if not instanceof(pmd, pluginconf.PluginMeta):
pmd = pluginconf.PluginMeta(pmd)
return [
[
sg.Checkbox(
pmd.get("title", pmd.id), key='p:'+pmd.id, default=plugin_states.get(pmd.id, 0),
tooltip=pmd.get("doc"), metadata="plugin", font="bold", pad=(0, (8, 0))
),
|
|
|
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
return [sg.Image(data=img_fn, **size)]
if img_fn.find(".") > 0:
return [sg.Image(filename=re.sub("[^/]+$", img_fn, pmd.fn), **size)]
return []
def plugin_entry(pmd, plugin_states):
""" checkbox for plugin name """
if not isinstance(pmd, pluginconf.PluginMeta):
pmd = pluginconf.PluginMeta(pmd)
return [
[
sg.Checkbox(
pmd.get("title", pmd.id), key='p:'+pmd.id, default=plugin_states.get(pmd.id, 0),
tooltip=pmd.get("doc"), metadata="plugin", font="bold", pad=(0, (8, 0))
),
|