我运行了这段代码,它的工作正常,并且显示一条消息,该消息带有不执行任何操作的next按钮。我希望该按钮将我带到下一个屏幕,即登录页面。我不知道如何将功能链接到按钮以将我带到下一个屏幕。单击按钮时应该有一个切换屏幕的功能,但是我不知道该功能。有人可以帮我吗。我被困住了。
#######这是我的.kv文件#####
MDScreen :
md_bg_color : [96/255,153/255,206/255,1]
MDCard :
radius:[30,]
border_radius:30
orientation : 'vertical'
size_hint : None,None
size : 300,400
pos_hint : {"center_x":.5,"center_y":.5}
elevation : 15
md_bg_color : [255/255,255/255,255/255,1]
padding : 20
spacing : 30
MDLabel :
text : "Hey there, welcome to DeliverToday! \nWe bring your needs right
at your doorstep ~ \nhave a great journey ahead!"
font_style : "Button"
font_size : 20
halign : "center"
size_hint_y : None
height : self.texture_size[1]
padding_y : 100
MDRoundFlatButton :
text : "NEXT"
font_size : 15
pos_hint : {"center_x":.5}
theme_text_color : "Custom"
text_color : [0,0,0,1]
######这是我的py文件#########
from kivymd.app import MDApp
class DeliveryToday(MDApp):
def build(self):
return
DeliveryToday().run()