Jan-12-2017, 04:28 PM
If y is within the confines of a class, and the StringVar is external from the method that it is used in,
both the definition of the variable and the use of same must reference self.
both the definition of the variable and the use of same must reference self.
self.y = tk.StringVar() SpeedInput = tk.Entry(root, textvariable = self.y) speed = int(self.y.get())