Skip to content Skip to sidebar Skip to footer

Get() Missing 1 Required Positional Argument: 'self'

class CofficientsDialog : global a,b,c def __init__(self,master): self.x=DoubleVar self.y=DoubleVar self.z=DoubleVar self.master = master

Solution 1:

DoubleVar is a class, to use it, you must instantiate it, with

self.x = DoubleVar()
self.y = DoubleVar()
self.z = DoubleVar()

then the self parameter is automatically filled.

Solution 2:

you need to put master = self.master in the function

Post a Comment for "Get() Missing 1 Required Positional Argument: 'self'"