I currently have a export function for my application, named export()
import ui
import webbrowser
def export():
url = 'www.youtube.com'
webbrowser.open(url)
def screenshot_action(sender):
v = sender.superview
with ui.ImageContext(v.width, v.height) as c:
v.draw_snapshot()
c.get_image().show()
v = ui.load_view()
v.present('sheet')
I have a button to use the export function I made with UI, but when I click it it does not do anything. What do I do?