initial commit
This commit is contained in:
commit
a32f263869
2 changed files with 20 additions and 0 deletions
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Best. Plugin. Ever.
|
||||||
|
|
||||||
|
(Python3 only.)
|
17
load.py
Normal file
17
load.py
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import tkinter as tk
|
||||||
|
import webbrowser
|
||||||
|
|
||||||
|
def plugin_start3(plugin_dir):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def plugin_stop():
|
||||||
|
pass
|
||||||
|
|
||||||
|
def plugin_app(parent):
|
||||||
|
label = tk.Label(parent, text="Aaaaaaaaaaaaaaaaardvark", fg="blue",
|
||||||
|
cursor="hand2")
|
||||||
|
label.bind("<Button-1>", lambda e: callback("https://youtu.be/dQw4w9WgXcQ"))
|
||||||
|
return label
|
||||||
|
|
||||||
|
def callback(url):
|
||||||
|
webbrowser.open(url)
|
Loading…
Reference in a new issue