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
- PyQt5 Label – Accessing opacity level of the Opacity effect
- PyQt5 Label – Setting opacity level to the Opacity effect
- PyQt5 QLabel - Checking if the opacity effect is window type
- PyQt5 QScrollBar – Setting Window Opacity property
- PyQt5 QScrollBar – Getting Window Opacity property
- PyQt5 – How to change background color of Main window ?
- PyQt5 Label – Get Opacity effect object
- PyQtGraph – Getting Plot Window Opacity
- PyQtGraph – Setting Plot Window Opacity
- PyQtGraph – Setting Opacity Level of Bar Graph
- PyQtGraph – Getting Opacity Level of Bar Graph
- PyQt5 Label – Adding Opacity effect
- PyQt5 QLabel - Checking if the opacity effect is widget type
- PyQt5 - Checking if the opacity effect is disabled or not
- PyQt5 QLabel - Disabling the opacity effect according to the user
- PyQtGraph – Setting Window Flag to Plot Window
- PyQtGraph – Getting Window Flags of Plot Window
- PYGLET – Sprite Opacity
- PYGLET – Shape Opacity
- PyQtGraph – Opacity Change Signal for Bar Graph
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.