When I try to debug by pressing the over button I eventually get the message
Code: Select all
import tkinter as tk class Mainframe(tk.Frame): def __init__(self,master,*args,**kwargs): tk.Frame.__init__(self,master,*args,**kwargs) class App(tk.Tk): def __init__(self): tk.Tk.__init__(self) self.title('Simple test') self.geometry('300x100') Mainframe(self).pack() self.mainloop() App()
AttributeError: 'Mainframe' object has no attribute '_w'
A google search only came up with the suggestion that the base class is not being called - but it is. Is this a bug or am I missing something?