xbase.py 文件源码

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

项目:garden.xpopup 作者: kivy-garden 项目源码 文件源码
def __init__(self, **kwargs):
        # preventing change content of the popup
        kwargs.pop('content', None)
        self._pnl_buttons = None
        super(XBase, self).__init__(**kwargs)

        layout = BoxLayout(orientation="vertical")
        layout.add_widget(self._get_body())
        self._pnl_buttons = BoxLayout(size_hint_y=None)
        layout.add_widget(self._pnl_buttons)
        self.add_widget(layout)

        # creating buttons panel
        self.property('buttons').dispatch(self)

        if self.auto_open:
            self.open()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号