def _Col_Select(self): view_win = tk.Toplevel() view_win.title("Select it") scroll_list = ScrollList(view_win) #, lines) scroll_list.fill(list(self.df)) scroll_list.pack() def sel(): self.opt_var2.set(scroll_list.get_selection()) view_win.destroy() tk.Button(view_win, text='select and close', command=sel).pack()
def CMD_select_col(self): view_win = tk.Toplevel() view_win.title("Select it") scroll_list = ScrollList(view_win) #, lines) scroll_list.fill(list(self.df)) scroll_list.pack() def sel(): self.the_selected_col = scroll_list.get_selection() self._col_select() view_win.destroy() tk.Button(view_win, text='select and close', command=sel).pack()
def _frame_uval_list(self): self.ls_frame = ScrollList(self.topframe, **self.frame_opt) self.ls_frame.fill(lines=self.unique_vals.keys())