snackbar.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:KivyMD 作者: cruor99 项目源码 文件源码
def begin(self):
        if self.button_text == '':
            self.remove_widget(self.ids['_button'])
        else:
            self.ids['_spacer'].width = dp(16) if \
                DEVICE_TYPE == "mobile" else dp(40)
            self.padding_right = dp(16)
        Window.add_widget(self)
        anim = Animation(y=0, duration=.3, t='out_quad')
        anim.start(self)
        Clock.schedule_once(lambda dt: self.die(), self.duration)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号