Python Forum
[Tkinter] What is this error?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] What is this error?
#2
I don't get an error when I run your code. It doesn't do anything interesting when the search button is pressed. but there is no error.

You cannot set a widget's parent using the config command.
result_lbl = Label()
result_lbl.config(results, text = "Physical quantity")
You need to specify the parent when you create the widget.
results = LabelFrame(main, text = "Results")
result_lbl = Label(results)
If you want to hide or pop up a widget inside a window you can use pack and forget.
Oshadha likes this post
Reply


Messages In This Thread
What is this error? - by Oshadha - Jan-13-2021, 06:23 AM
RE: What is this error? - by deanhystad - Jan-13-2021, 03:55 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020