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