From 707d709841da9d1f8c8d07ee1f3e78196a3d76c0 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 13 Dec 2018 22:49:36 -0500 Subject: [PATCH] Implemented the BringToFront method of Window class --- PySimpleGUIQt/PySimpleGUIQt.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 7ca7dc5e..859a5387 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -3503,10 +3503,12 @@ class Window: self.QT_QMainWindow.setWindowOpacity(self._AlphaChannel) def BringToFront(self): - try: - self.TKroot.lift() - except: - pass + self.QTMainWindow.activateWindow(self.QT_QMainWindow) + self.QTMainWindow.raise_(self.QT_QMainWindow) + # try: + # self.TKroot.lift() + # except: + # pass def CurrentLocation(self): location = self.QT_QMainWindow.geometry()