__init__.py 文件源码

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

项目:PyCon-Mobile-App 作者: pythonindia 项目源码 文件源码
def set_side_panel(self, widget):
        '''Removes any existing side panel widgets, and replaces them with the
        argument `widget`.
        '''
        # Clear existing side panel entries
        if len(self._side_panel.children) > 0:
            for child in self._side_panel.children:
                self._side_panel.remove(child)
        # Set new side panel
        self._side_panel.add_widget(widget)
        self.side_panel = widget
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号