Brings this window to the top of all other windows (perhaps may not be brought before a window made to "stay on top")
(self)
| 11755 | self.TKroot.attributes('-alpha', alpha) |
| 11756 | |
| 11757 | def bring_to_front(self): |
| 11758 | """ |
| 11759 | Brings this window to the top of all other windows (perhaps may not be brought before a window made to "stay |
| 11760 | on top") |
| 11761 | """ |
| 11762 | if not self._is_window_created('tried Window.bring_to_front'): |
| 11763 | return |
| 11764 | if running_windows(): |
| 11765 | try: |
| 11766 | self.TKroot.wm_attributes("-topmost", 0) |
| 11767 | self.TKroot.wm_attributes("-topmost", 1) |
| 11768 | if not self.KeepOnTop: |
| 11769 | self.TKroot.wm_attributes("-topmost", 0) |
| 11770 | except Exception as e: |
| 11771 | warnings.warn('Problem in Window.bring_to_front' + str(e), UserWarning) |
| 11772 | else: |
| 11773 | try: |
| 11774 | self.TKroot.lift() |
| 11775 | except: |
| 11776 | pass |
| 11777 | |
| 11778 | def send_to_back(self): |
| 11779 | """ |
no test coverage detected