From 8e7afcedcee747cd1a93ff578ddef010a3ea4ba1 Mon Sep 17 00:00:00 2001 From: Paul S Date: Fri, 7 May 2021 13:15:20 +0200 Subject: [PATCH] Return values for main-function --- install_gui.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install_gui.py b/install_gui.py index 538fe1c..6a3dfae 100644 --- a/install_gui.py +++ b/install_gui.py @@ -101,10 +101,11 @@ class Page03(QtWidgets.QWizardPage): self.radio1.setChecked(True) def validatePage(self): + global EXCLUDE if self.radio1.isChecked(): - set_exclude(True) + EXCLUDE = True else: - set_exclude(False) + EXCLUDE = False return True @@ -278,7 +279,7 @@ class Page10(QtWidgets.QWizardPage): self.label3.setOpenExternalLinks(True) def validatePage(self): - return True, EXCLUDE, RSYNC_CMD + return True def main_install_gui(): @@ -288,5 +289,7 @@ def main_install_gui(): app.exec_() + return True, EXCLUDE, RSYNC_CMD + if __name__ == '__main__': - main_install_gui() + is_finalized, is_exclude, rsync_cmd = main_install_gui()