Python: Cannot Use Keyword Arguments when Inheriting from ttk.Frame
When passing in kwargs
to a function, use **kwargs
instead. This means 'unpack as kwargs
', since you have to put all kwargs
in one by one. 'Unpack' means that Python will do that for you.
Change
super(MyFrame, self).__init__(parent, kwargs)
to
super(MyFrame, self).__init__(parent, **kwargs)