Link/WebLink
Clickable text to call a function or launch a URL
from appJar import gui
def press(link):
app.infoBox("Info", "You clicked the link!")
app=gui()
app.setFont(20)
app.addLink("Click me", press)
app.addWebLink("appJar.info", "http://appJar.info")
app.go()
Add Links
-
.addLink(title, func)
Adds a hyperlink, that when clicked, will call the specified function. -
.addWebLink(title, page)
Adds a hyperlink, that when clicked, will launch the default browser, and load the specified page.
It must be a fully formed link, includinghttp://