Python Forum

Full Version: webbrowser not working in screen management in kivy
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Where is the kivy code ?