class AppWizard(QtGui.QWizard): def __init__(self, parent=None): super(AppWizard, self).__init__(parent) self.setWindowTitle("Custom Reset") self.appremoval = AppRemovalPage() self.addPage(self.appremoval) self.userremoval = UserRemovalPage() self.addPage(self.userremoval) self.addPage(self.createConclusionPage()) self.button(QtGui.QWizard.NextButton).clicked.connect( self.appremoval.selectedAppsRemoval) self.button(QtGui.QWizard.NextButton).clicked.connect( self.userremoval.printChecked) self.button(QtGui.QWizard.FinishButton).clicked.connect(self.apply) def apply(self): self.close() self.custom_remove = Apply("custom-remove", self.appremoval.oldKernelRemoval) self.custom_remove.show() def createConclusionPage(self): page = QtGui.QWizardPage() page.setTitle("Apply Changes") label = QtGui.QLabel("Press the Finish button to start") label.setWordWrap(True) layout = QtGui.QVBoxLayout() layout.addWidget(label) page.setLayout(layout) return page
class AppWizard(QtGui.QWizard): def __init__(self, parent=None): super(AppWizard, self).__init__(parent) self.setWindowTitle("Custom Reset") self.appremoval = AppRemovalPage() self.appinstall = AppInstallPage() self.addPage(self.appremoval) self.addPage(self.appinstall) self.userremoval = UserRemovalPage() self.addPage(self.userremoval) self.addPage(self.createConclusionPage()) self.button(QtGui.QWizard.CancelButton).clicked.connect(self.appremoval.closeCache) self.button(QtGui.QWizard.NextButton).clicked.connect(self.appremoval.selectedAppsRemoval) self.button(QtGui.QWizard.CancelButton).clicked.connect(self.appinstall.closeCache) self.button(QtGui.QWizard.NextButton).clicked.connect(self.appinstall.selectedAppsInstall) self.button(QtGui.QWizard.NextButton).clicked.connect(self.userremoval.printChecked) self.button(QtGui.QWizard.FinishButton).clicked.connect(self.apply) def apply(self): self.close() self.custom_remove = Apply("custom-remove", self.appremoval.oldKernelRemoval, self.userremoval.remove_non_defaults) self.custom_remove.show() def createConclusionPage(self): page = QtGui.QWizardPage() page.setTitle("Apply Changes") label = QtGui.QLabel("Press the Finish button to start") label.setWordWrap(True) layout = QtGui.QVBoxLayout() layout.addWidget(label) page.setLayout(layout) return page
def apply(self): self.close() self.custom_remove = Apply("custom-remove", self.appremoval.oldKernelRemoval, self.userremoval.remove_non_defaults) self.custom_remove.show()
def apply(self): self.close() self.custom_remove = Apply("custom-remove", self.appremoval.oldKernelRemoval) self.custom_remove.show()