Skip to content Skip to sidebar Skip to footer

Typeerror: Must Be Str Or None, Not Frame

Using an OOP approach to developing a tkinter program for the first time based on the sentdex tkinter series. I honestly have no idea what the error here means. The error directs m

Solution 1:

The problem is here:

classfrmWelcome(tk.Frame):def__init__(self, *args, **kwargs):
        #initialise tkinter
        tk.Tk.__init__(self, *args, **kwargs)

You are inheriting from tk.Frame yet you are calling tk.Tk.__init__ You need to be calling tk.Frame.__init__

Post a Comment for "Typeerror: Must Be Str Or None, Not Frame"