AttributeError: 'Myapp' object has no attribute 'label' #1568
mhd-fauzan
started this conversation in
General
Replies: 1 comment
-
You don't appear to have instantiated a self.label widget, hence the error. You do have a self.label1, maybe you meant to configure that? As an aside, you should check out the PEP-8. Your naming conventions for some of your methods (e.g. setMasterVolume), are at odds with Python convention. Also you have:
This looks wrong. The filedialog is part of Tkinter, not CustomTkinter. I would expect to see:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I made a GUI to be able to mute windows sound. After I created the GUI and the script to control the sound I connected the two. And the program runs successfully. But I want to greatly adjust the sound of windows appearing windows volume percentage. I have made it but an error appears
AttributeError: 'Myapp' object has no attribute 'label'
in the 138th syntax, namelyself.label.configure(text=selection)
here I display the code.Can you please fix it as I need this for a project.
Thank You.
Beta Was this translation helpful? Give feedback.
All reactions