May 2018
Beginner to intermediate
452 pages
11h 26m
English
If you run the application, you may notice that while fields with the focusout errors turn red, we don't get to see the actual error. We need to fix this by performing the following steps:
self.error = getattr(self.input, 'error', tk.StringVar()) self.error_label = ttk.Label(self, textvariable=self.error) self.error_label.grid(row=2, column=0, sticky=(tk.W + tk.E))