Installwizard: handle Escape key
This commit is contained in:
parent
3ca0074301
commit
1f75ab89fa
|
@ -87,6 +87,7 @@ class InstallWizard(WindowModalDialog, WizardBase):
|
||||||
self.please_wait.setAlignment(Qt.AlignCenter)
|
self.please_wait.setAlignment(Qt.AlignCenter)
|
||||||
self.icon_filename = None
|
self.icon_filename = None
|
||||||
self.loop = QEventLoop()
|
self.loop = QEventLoop()
|
||||||
|
self.rejected.connect(lambda: self.loop.exit(False))
|
||||||
self.cancel_button.clicked.connect(lambda: self.loop.exit(False))
|
self.cancel_button.clicked.connect(lambda: self.loop.exit(False))
|
||||||
self.next_button.clicked.connect(lambda: self.loop.exit(True))
|
self.next_button.clicked.connect(lambda: self.loop.exit(True))
|
||||||
outer_vbox = QVBoxLayout(self)
|
outer_vbox = QVBoxLayout(self)
|
||||||
|
|
Loading…
Reference in New Issue