Python Forum
webbrowser not working in screen management in kivy - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: webbrowser not working in screen management in kivy (/thread-31155.html)



webbrowser not working in screen management in kivy - thousif - Nov-25-2020

import webbrowser
def any_Function(instance)
webbrowser.open('https://www.python.org')
<Mainwindow>:
name: "main"
GridLayout:
cols:1
spacing: '3pt'
padding:'5pt'
Button:
text: "Click Here"
font_size: '12pt'
color: 1, 0, 0, 1
bold: True
size_hint: None, None
pos_hint: {'center_x': 1.9}
width: 340
height: 15
on_press:
app.root.current = any_Function()
root.manager.transition.direction = "left"
My Problem is im unable to link a function in screenmanagement. How do i access.
My requirement is "in screen if we click a label weblink should display"
Please help me in python kivy


RE: webbrowser not working in screen management in kivy - Axel_Erfurt - Nov-25-2020

Where is the kivy code ?