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)
| 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 | """ |
no test coverage detected