Python Forum
Class Struggle: Connecting a Method to an Outside Variable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class Struggle: Connecting a Method to an Outside Variable
#7
(Jan-23-2018, 03:18 PM)vulpesVelox Wrote: The explicit order of the args is addressed via the grid args, isn't it?
The signature of the grid method is
>>> inspect.signature(tkinter.Button.grid)
<Signature (self, cnf={}, **kw)>
The documentation doesn't suggest a particular order for the arguments, so yes the keywords are needed.

(Jan-23-2018, 03:18 PM)vulpesVelox Wrote: "myVar" doesn't belong. I think. It's there for lack of an alternative method
I think myVar is indeed misleading in a tkinter program if the value is not a tkinter variable.
Reply


Messages In This Thread
RE: Class Struggle: Connecting a Method to an Outside Variable - by Gribouillis - Jan-23-2018, 04:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Selenium big struggle Troop 2 1,722 Apr-25-2020, 10:47 AM
Last Post: Troop

Forum Jump:

User Panel Messages

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