The LabelFrame class can be used to group multiple input widgets, indicating the logical entity with a label they represent. It is typically used in forms and is very similar to the Frame widget.
Grouping inputs with the LabelFrame widget
Getting ready
We will build a form with a couple of LabelFrame instances, each one with their corresponding child input widgets:
How to do it...
Since the purpose of this example is to show the final layout, we will add some widgets, without keeping their references as attributes:
import tkinter as tk
class App(tk.Tk):
def __init__...