def run_thread(): self.frame_toplevel_progress = tk.Toplevel(self) self.progress_widget_toplevel = tkw.ProgressbarWidget( self.frame_toplevel_progress, sticky='nsew', in_rows=True) self.frame_toplevel_progress.update_idletasks() self.progress_widget_toplevel.update_idletasks() self.progress_widget.run_progress(run_function, message=message) self.frame_toplevel_progress.destroy()
def _set_frame_bot(self): self.frame_info = tk.Frame(self.frame_bot) self.frame_info.grid(row=0, column=0, sticky="nsew") self.frame_progress = tk.Frame(self.frame_bot) self.progress_widget = tkw.ProgressbarWidget(self.frame_progress, sticky='nsew') # self.info_widget = tkw.LabelFrameLabel(self.frame_info, pack=False) tkw.grid_configure(self.frame_info) tkw.grid_configure(self.frame_bot)
def _set_frame_bot(self): self.frame_info = tk.Frame(self.frame_bot) self.frame_info.grid(row=0, column=0, sticky="nsew") # TODO: Progressbar deactivated. Threading not working as expected. self.frame_progress = tk.Frame(self.frame_bot) self.progress_widget = tkw.ProgressbarWidget(self.frame_progress, sticky='nsew') self.info_widget = tkw.LabelFrameLabel(self.frame_info, pack=False) tkw.grid_configure(self.frame_info) tkw.grid_configure(self.frame_bot)
def _set_frame_bot(self): self.frame_info = tk.Frame(self.frame_bot) self.frame_info.grid(row=0, column=0, sticky="nsew") # ttk.Separator(self.frame_bot, orient=tk.VERTICAL).grid(row=0, column=1, sticky='ns') self.frame_progress = tk.Frame(self.frame_bot) # self.frame_progress.grid(row=0, column=2, sticky="nsew") self.progress_widget = tkw.ProgressbarWidget(self.frame_progress, sticky='nsew') self.info_widget = tkw.LabelFrameLabel(self.frame_info, pack=False) tkw.grid_configure(self.frame_info) tkw.grid_configure(self.frame_bot)