External Link Attach with Button

4 views
Skip to first unread message

nisargj...@gmail.com

unread,
Apr 21, 2015, 6:25:47 AM4/21/15
to kivy-...@googlegroups.com
I am using this code to attach a link with button and when button got pressed by user a link will be directly open in a web browser....

but the problem is that when i am launching the app it just directly lauch link...without clicking on button

code  is :

from kivy.app import App
from kivy.uix.button import Button
import webbrowser
 



class TestApp(App):
   
def build(self):
       
Button(text='help button')
   
Button.bind(on_press=webbrowser.open('http://www.google.com')
   
return Button

 
TestApp().run()


Reply all
Reply to author
Forward
0 new messages