79614143

Date: 2025-05-09 12:52:47
Score: 1
Natty:
Report link

TKInter widget not appearing on form

On notebook, add keyword fill='both'

Move label1 next to label2 on line 13.

snippet:

notebook = ttk.Notebook(form)
notebook.pack(expand=True, fill='both')

label1 = tkinter.ttk.Label(form, text='Test Label 1') 
label2 = tkinter.ttk.Label(form, text='Test Label 2')   #   This one works
entry = tkinter.ttk.Entry(form)

Screenshot:

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Adios Gringo