bdialog.py 文件源码

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

项目:kdialog 作者: HeaTTheatR 项目源码 文件源码
def _update_canvas_size(self, instance, value):
        '''?????????? ??? ????????? ??????? ?????? ??????????.

        type instance: instance <kivy.uix.gridlayout.GridLayout object'>;

        type value: list;
        param value: ??????? ?????? instance;

        '''

        self.canvas_for_box_content.pos = instance.pos
        self.canvas_for_box_content.size = instance.size

        # ????????? ?????? ???? Popup.
        self.height = self.dp(self.canvas_for_box_content.size[1] + 70)
        self.width = self.dp(int(Window.size[0] // self.hint_x))

        if self.height > Window.size[1]:
            self.height = self.dp(Window.size[1] - 10)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号