self.propagate = defaultdict(lambda: True)
self.root = tk.Tk()
self.root.title("Tutoring Tool")
+ self.root.resizable(False, False)
def on_close():
if self.editor_views:
dialog = tk.Toplevel(self.root)
dialog.title("Generate plot")
dialog.minsize(250, 0)
+ dialog.resizable(False, False)
+ dialog.bind('<Escape>', lambda *_: dialog.destroy())
type_var = tk.StringVar(self.root)
select_frame = tk.Frame(dialog)
type_select = ttk.OptionMenu(select_frame, type_var)
if do:
self.finish()
self.root = tk.Toplevel(parent)
+ self.root.resizable(False, False)
self.root.protocol('WM_DELETE_WINDOW', on_close)
scroll_frame = VertScrollingFrame(self.root)
self.grid = scroll_frame.content_frame
cancel_btn.pack(side = 'left', **TK_PAD)
buttons.pack()
- label_for = lambda name: tk.Label(self.grid, text = name, width = 10)
+ label_for = lambda name: tk.Label(self.grid, text = name, width = 15)
labels = list(map(label_for, DataEditModel.Record.DISPLAY_NAMES))
for (col, label) in enumerate(labels):
label.grid(row = 0, column = col)
def install_row(self, ord_, controls):
for (col, control) in enumerate(controls):
- control.grid(row = ord_, column = col)
+ control.grid(row = ord_, column = col, sticky = 'EW')
class DataError(Exception):
def __init__(self, row, column):