Hallo.
Ich habe in kivy ein Problem. Ich möchte eine neue Seite öffnen, wenn ein Button gedrückt wird.
import kivy
from kivy.app import App
from kivy.uix.button import Button
class MyApp(App):
def build(self):
# use a (r, g, b, a) tuple
button = Button(text ="Push Me !",
font_size ="20sp",
background_color =(1, 1, 1, 1),
color =(1, 1, 1, 1),
size =(40, 40),
size_hint =(.2, .2),
pos =(300, 250))
button.bind(on_press = self.click)
return button
def click(self, event):
print('ye')