gui.py 文件源码

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

项目:modis 作者: Infraxion 项目源码 文件源码
def __init__(self, parent):
        """
        Create a new status bar.

        Args:
            parent: A tk or ttk object
        """
        logger.debug("Initialising status bar")

        super(StatusBar, self).__init__(parent)

        self.status = tk.StringVar()
        # Status bar
        self.statusbar = ttk.Label(self, textvariable=self.status, padding=2, anchor="center")
        self.statusbar.grid(column=0, row=0, sticky="W E")

        # Configure stretch ratios
        self.columnconfigure(0, weight=1)

        # Set default status
        self.set_status(False)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号