Our form is divided into sections with a label for and a box around each section. For each section, we'll create a LabelFrame widget and start adding our LabelInput widgets to it by performing the following steps:
- Let's start with the record information frame by executing the following code:
recordinfo = tk.LabelFrame(self, text="Record Information")
- Now, we'll add the first line of the input widgets, as follows:
self.inputs['Date'] = LabelInput(recordinfo, "Date", input_var=tk.StringVar()) self.inputs['Date'].grid(row=0, column=0) ...