Tkinter module test: widget class not inserted in application frame

Rich Shepard rshepard at appl-ecosys.com
Fri Jun 17 14:54:19 EDT 2022


On Fri, 17 Jun 2022, MRAB wrote:

> This:
>
>         self.inputs['Last name'] = cc.LabelInput(
>             ContactNameInput, 'lname',
>             input_class = ttk.Entry,
>             input_var = tk.StringVar()
>             )
>
> should be this:
>
>         self.inputs['Last name'] = cc.LabelInput(
>             self, 'lname',
>             input_class = ttk.Entry,
>             input_var = tk.StringVar()
>             )
>
> Also, this:
>
>         self.inputs['First name'] = cc.LabelInput(
>             ContactNameInput, 'fname',
>             input_class = ttk.Entry,
>             input_var = tk.StringVar()
>             )
>
> should be this:
>
>         self.inputs['First name'] = cc.LabelInput(
>             self, 'fname',
>             input_class = ttk.Entry,
>             input_var = tk.StringVar()
>             )

MRAB,

Ah! I must have misread Alan Moore's examples, then. I'll need to fix all my
views.

Thank you,

Rich


More information about the Python-list mailing list