MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / set_alpha

Method set_alpha

PySimpleGUI/PySimpleGUI.py:11723–11733  ·  view source on GitHub ↗

Sets the Alpha Channel for a window. Values are between 0 and 1 where 0 is completely transparent :param alpha: 0 to 1. 0 is completely transparent. 1 is completely visible and solid (can't see through) :type alpha: (float)

(self, alpha)

Source from the content-addressed store, hash-verified

11721 self.TKroot.attributes('-alpha', 255)
11722
11723 def set_alpha(self, alpha):
11724 """
11725 Sets the Alpha Channel for a window. Values are between 0 and 1 where 0 is completely transparent
11726
11727 :param alpha: 0 to 1. 0 is completely transparent. 1 is completely visible and solid (can't see through)
11728 :type alpha: (float)
11729 """
11730 if not self._is_window_created('tried Window.set_alpha'):
11731 return
11732 self._AlphaChannel = alpha
11733 self.TKroot.attributes('-alpha', alpha)
11734
11735 @property
11736 def alpha_channel(self):

Callers 13

guiFunction · 0.95
show_winFunction · 0.95
mainFunction · 0.95
_display_notificationFunction · 0.95
display_notificationFunction · 0.95
notifyMethod · 0.95
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

_is_window_createdMethod · 0.95

Tested by

no test coverage detected