logviewer.py 文件源码

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

项目:mobileinsight-mobile 作者: mobile-insight 项目源码 文件源码
def onGoTo(self):
        if self.loaded == 'Yes':
            popup = BoxLayout(
                orientation='vertical',
                size=self.size,
                pos=self.pos)
            self.goto_popup = Popup(title='Go To' +
                                    '          (1~' +
                                    str(len(self.data_view)) +
                                    ')', content=popup, size_hint=(0.9, 0.25), auto_dismiss=False)
            self.goto_textinput = TextInput()
            cancel = Button(text='Cancel', on_release=self.dismiss_goto_popup)
            ok = Button(text='Ok', on_release=self.goto_ok)
            buttons = BoxLayout(size_hint_y=None, height=self.height / 20)
            buttons.add_widget(cancel)
            buttons.add_widget(ok)
            popup.add_widget(self.goto_textinput)
            popup.add_widget(buttons)
            self.goto_popup.open()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号