apache_updater.py 文件源码

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

项目:webupdate 作者: Bakterija 项目源码 文件源码
def update_done_dialog(self, cur_build, upd_build):
        popup = Popup(title='Update done', content=ScrollView(), size_hint=(0.8,None), height=cm(5))
        grid = GridLayout(cols=1, spacing=0, size_hint_y=None)
        grid.bind(minimum_height= grid.setter('height'))
        con = StackLayout()
        grid.add_widget(con)
        popup.content.add_widget(grid)
        lbl1 = Label(text='Done updating from %s to %s' % (cur_build, upd_build), size_hint_y=None, height=cm(1))
        btn1 = Button(text='Close', size_hint=(1, None), height=cm(1))
        btn1.bind(on_release=popup.dismiss)
        for x in (lbl1, btn1):
            con.add_widget(x)
        popup.open()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号