tkinter - AttributeError: 'int' object has no attribute ...
stackoverflow.com › questions › 25987517Sep 23, 2014 · But your movefigure is not a method of any class, it's just a regular function. That means it doesn't take a self parameter, and you don't call it with dot syntax. (Of course there's nothing stopping you from calling any parameter self if you want, just like there's nothing stopping you from writing a function called print_with_color that erases a file named /kernel, but it's not a good idea…)