Aug-03-2023, 10:33 PM
The error is correct. Class App does not have an attribute named "username" until after homeButton() is called. You should initialize self.username to something in the __init__() method.
AttributeError: '_tkinter.tkapp' object has no attribute 'username'
|
|
Messages In This Thread |
AttributeError: '_tkinter.tkapp' object has no attribute 'username' - by Konstantin23 - Aug-03-2023, 08:56 PM
RE: AttributeError: '_tkinter.tkapp' object has no attribute 'username' - by deanhystad - Aug-03-2023, 10:33 PM
RE: AttributeError: '_tkinter.tkapp' object has no attribute 'username' - by Konstantin23 - Aug-04-2023, 09:53 AM
RE: AttributeError: '_tkinter.tkapp' object has no attribute 'username' - by deanhystad - Aug-04-2023, 11:54 AM
RE: AttributeError: '_tkinter.tkapp' object has no attribute 'username' - by Konstantin23 - Aug-04-2023, 12:41 PM
|