mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pyqt6: QWizard changes
This commit is contained in:
parent
93ff403587
commit
638b987a70
@ -932,7 +932,7 @@ class Wizard(QWizard):
|
||||
|
||||
def set_button_texts(self):
|
||||
for but, text in iteritems(self.BUTTON_TEXTS):
|
||||
self.setButtonText(getattr(self, but+'Button'), _(text))
|
||||
self.setButtonText(getattr(QWizard.WizardButton, but+'Button'), _(text))
|
||||
|
||||
def retranslate(self):
|
||||
for pid in self.pageIds():
|
||||
@ -942,7 +942,7 @@ class Wizard(QWizard):
|
||||
self.set_finish_text()
|
||||
|
||||
def accept(self):
|
||||
pages = map(self.page, self.visitedPages())
|
||||
pages = map(self.page, self.visitedIds())
|
||||
for page in pages:
|
||||
page.commit()
|
||||
QWizard.accept(self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user