def __init__(self, master, **kwargs):
super().__init__(master, **kwargs)
self.content_frame = ttk.Frame(self)
self.lb_title = ttk.Label(self.content_frame, text='Lesson paused')
self.button_frame = ttk.Frame(self.content_frame)
self.bt_continue = ttk.Button(self.button_frame, text='Continue', default='active', command=self.on_continue)
self.bt_restart = ttk.Button(self.button_frame, text='Restart')
self.bt_abort = ttk.Button(self.button_frame, text='Abort')
self.content_frame.grid(column=0, row=0)
self.lb_title.grid(column=0, row=0, pady=3)
self.button_frame.grid(column=0, row=1, pady=10)
self.bt_continue.grid(column=0, row=1, pady=3)
self.bt_restart.grid(column=0, row=2, pady=3)
self.bt_abort.grid(column=0, row=3, pady=3)
self.columnconfigure(0, weight=1)
self.rowconfigure(0, weight=1)
self.focus_set()
评论列表
文章目录