Aug-08-2018, 06:12 PM
This is the code I have.
self.contrast = Scale(root, command=self.editingImage, from_= -100, to = 100, orient = HORIZONTAL)
I am trying to call the function editingImage(self) whenever the scale is moved, but python keeps giving me the error:
TypeError: editingImage() takes 1 positional argument but 2 were given
Why is this? I am only putting in one argument, self. At least I think I am?
self.contrast = Scale(root, command=self.editingImage, from_= -100, to = 100, orient = HORIZONTAL)
I am trying to call the function editingImage(self) whenever the scale is moved, but python keeps giving me the error:
TypeError: editingImage() takes 1 positional argument but 2 were given
Why is this? I am only putting in one argument, self. At least I think I am?