I made a calculator using Python tkinter, but an error appears. 'NoneType' object has no attribute 'configure'

Asked 2 years ago, Updated 2 years ago, 71 views

I'm sorry to attach the picture.

I made a calculator using tkinter

Run and enter a value.

AttributeError: 'NoneType' object has no attribute 'configure'

An error appears. I think there is a problem with .configure in the function, but I don't know how to solve the problem.

python tkinter

2022-09-20 18:56

1 Answers

The pack function, a common method of tkinter widget, simply makes the widget visible and does not have a return value (Python returns None if there is no result of the function).)

Create individual variables instead of writing the tkinter widget inline.


2022-09-20 18:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.