79724066

Date: 2025-08-03 13:53:58
Score: 2.5
Natty:
Report link

The Code in Answer 1 works, but I think it is not "correct", because the StringVar var isn't used at all.
The "correct" code should initialize the variable with the parent widget, that is
self.var = StringVar(self)
Then you can call self.var.get() and this gives the expected result

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Carl