Signal rewrite to new style

old is not supported in pyqt5
This commit is contained in:
donoban 2018-10-24 09:46:16 +02:00
parent 461cb7ae8c
commit 531b9daad2
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -38,11 +38,9 @@ class AboutDialog(ui_about.Ui_AboutDialog, QDialog):
with open('/etc/qubes-release', 'r') as release_file:
self.release.setText(release_file.read())
self.connect(self.ok, SIGNAL("clicked()"), SLOT("accept()"))
self.connect(self.releaseNotes, SIGNAL("clicked()"),
self.on_release_notes_clicked)
self.connect(self.informationNotes, SIGNAL("clicked()"),
self.on_information_notes_clicked)
self.ok.clicked.connect(self.accept)
self.releaseNotes.clicked.connect(self.on_release_notes_clicked)
self.informationNotes.clicked.connect(self.on_information_notes_clicked)
def on_release_notes_clicked(self):
release_notes_dialog = ReleaseNotesDialog()