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

Method set_transparent_color

PySimpleGUI/PySimpleGUI.py:11952–11965  ·  view source on GitHub ↗

Set the color that will be transparent in your window. Areas with this color will be SEE THROUGH. :param color: Color string that defines the transparent color :type color: (str)

(self, color)

Source from the content-addressed store, hash-verified

11950 self.refresh()
11951
11952 def set_transparent_color(self, color):
11953 """
11954 Set the color that will be transparent in your window. Areas with this color will be SEE THROUGH.
11955
11956 :param color: Color string that defines the transparent color
11957 :type color: (str)
11958 """
11959 if not self._is_window_created('tried Window.set_transparent_color'):
11960 return
11961 try:
11962 self.TKroot.attributes('-transparentcolor', color)
11963 self.TransparentColor = color
11964 except:
11965 print('Transparent color not supported on this platform (windows only)')
11966
11967 def mouse_location(self):
11968 """

Callers 2

mainFunction · 0.95
mainFunction · 0.80

Calls 1

_is_window_createdMethod · 0.95

Tested by

no test coverage detected