PyQt5 – Get opacity level of the main window | windowOpacity() method
windowOpacity() method allows us to see the opacity level of the main window. Opacity is the measure of impenetrability to electromagnetic or other kinds of radiation, especially visible light. In radiative transfer, it describes the absorption and scattering of radiation in a medium, such as a plasma, dielectric, shielding material, glass, etc.
Opacity level ranges from 0.0 to 1.0, where 0.0 means completely transparent and 1.0 means completely opaque, by default it is 1.0 i.e completely opaque.
Syntax : self.windowOpacity()
Argument : It takes no argument.
Return : Returns a float value ranging from 0.0 to 1.0
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course