hashhub/testplugins/base.plg

21 lines
399 B
Plaintext
Raw Normal View History

2024-06-07 23:09:17 +02:00
{
"name": "pluginname",
2024-06-14 22:07:08 +02:00
"modules": [],
2024-06-07 23:09:17 +02:00
"permissions": [
1,
2,
],
"API": """
def PLUGINAPIFUNC():
return {"plugin": "Enabled"}
""",
"init": """
addmenu = tk.Menu(menu)
menu.add_cascade(label="exampleplugin", menu=addmenu)
addmenu.add_command(label="NULL", command=print())
""",
2024-06-08 17:12:26 +02:00
"run": """
from tkinter import messagebox
messagebox.showinfo("PLUGIN TEST", "PLUGIN TEST")
""",
2024-06-07 23:09:17 +02:00
}