【发布时间】:2021-08-18 10:13:36
【问题描述】:
我在 kivymd 中制作了一个按钮来在屏幕之间转换,但我想将其当前转换更改为淡入淡出,请问我该怎么做? (非常感谢您的帮助) 这是当前的按钮代码:
MDTextButton:
text: '< Back'
padding_x: 0
custom_color: (244/255, 246/255, 214/255, 1)
pos_hint: {"center_y": .1}
root_button_anim: True
on_press:
# change direction to to non-movable
root.manager.transition.direction = 'right'
root.manager.current = 'Screen1'
【问题讨论】: