notification.py 文件源码

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

项目:garden.xpopup 作者: kivy-garden 项目源码 文件源码
def complete(self, text=_('Complete'), show_time=2):
        """
        Sets the progress to 100%, hides the button(s) and automatically
        closes the popup.

        .. versionchanged:: 0.2.1
        Added parameters 'text' and 'show_time'

        :param text: text instead of 'Complete', optional
        :param show_time: time-to-close (in seconds), optional
        """
        self._complete = True
        n = self.max
        self.value = n
        self.text = text
        self.buttons = []
        Clock.schedule_once(self.dismiss, show_time)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号