Return values for main-function
This commit is contained in:
parent
845b7e9c9a
commit
8e7afcedce
1 changed files with 7 additions and 4 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue