From 7fa5fe659e650e4d2a5495fa6f5edd69158c29c3 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sun, 9 Dec 2018 15:45:59 -0500 Subject: [PATCH] Window Move and Minimize --- PySimpleGUIQt/PySimpleGUIQt.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 0f4459d1..8ee05d95 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -3362,12 +3362,11 @@ class Window: return screen_width, screen_height def Move(self, x, y): - # TODO - return + self.QT_QMainWindow.move(x, y) def Minimize(self): - # TODO - return + self.QT_QMainWindow.setWindowState(Qt.WindowMinimized) + def StartMove(self, event): try: @@ -4803,7 +4802,6 @@ def PackFormIntoFrame(window, containing_frame, toplevel_win): else: style += "QProgressBar { border: %spx solid grey; border-radius: 5px; background-color: %s}"%(border_depth, DEFAULT_PROGRESS_BAR_COLOR[1]) - print(style) element.QT_QProgressBar.setStyleSheet(style) element.QT_QProgressBar.setTextVisible(False)