Return values for main-function

This commit is contained in:
Paul S 2021-05-07 13:15:20 +02:00
parent 845b7e9c9a
commit 8e7afcedce

View file

@ -101,10 +101,11 @@ class Page03(QtWidgets.QWizardPage):
self.radio1.setChecked(True) self.radio1.setChecked(True)
def validatePage(self): def validatePage(self):
global EXCLUDE
if self.radio1.isChecked(): if self.radio1.isChecked():
set_exclude(True) EXCLUDE = True
else: else:
set_exclude(False) EXCLUDE = False
return True return True
@ -278,7 +279,7 @@ class Page10(QtWidgets.QWizardPage):
self.label3.setOpenExternalLinks(True) self.label3.setOpenExternalLinks(True)
def validatePage(self): def validatePage(self):
return True, EXCLUDE, RSYNC_CMD return True
def main_install_gui(): def main_install_gui():
@ -288,5 +289,7 @@ def main_install_gui():
app.exec_() app.exec_()
return True, EXCLUDE, RSYNC_CMD
if __name__ == '__main__': if __name__ == '__main__':
main_install_gui() is_finalized, is_exclude, rsync_cmd = main_install_gui()