clientgui.py 文件源码

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

项目:Chappie 作者: sterlinglaird 项目源码 文件源码
def initialize_window(self):
        """
        Initialize the window of the chat application.
        """

        self.master.title("Chappie")
        self.master.columnconfigure(0, weight=1)
        self.master.columnconfigure(1, weight=4)
        self.master.columnconfigure(2, weight=1)
        self.master.configure(bg="gray20")
        self.master.resizable(0,0)

        # Custom Fonts
        self.header_font = tkFont.Font(family="Verdana", size=14, weight="bold")
        self.default_font = tkFont.Font(family="Verdana", size=10)

        # Set size of window and central start location
        w = 900
        h = 460
        sw = self.master.winfo_screenwidth()
        sh = self.master.winfo_screenheight()
        x = (sw/2) - (w/2)
        y = (sh/2) - (h/2)
        self.master.geometry('%dx%d+%d+%d' % (w, h, x, y))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号