From 9d10f5b4d238acd3e86e6625e6fbaabbc0f8fa25 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 8 Jun 2024 13:46:06 +0200 Subject: [PATCH] mambabase: port to PyQt6 --- mambabase/mambabase.py | 8 ++++---- mambabase/update-translations.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mambabase/mambabase.py b/mambabase/mambabase.py index f912e31..074cff0 100755 --- a/mambabase/mambabase.py +++ b/mambabase/mambabase.py @@ -2,9 +2,9 @@ # Copyright (c) 2019-2022 by Silvan Calarco # Release under the terms of the GPL version 3 license -from PyQt5 import QtGui, QtCore, QtWidgets, uic -from PyQt5.QtCore import pyqtProperty -from PyQt5.QtCore import QLocale, QTranslator +from PyQt6 import QtGui, QtCore, QtWidgets, uic +from PyQt6.QtCore import pyqtProperty +from PyQt6.QtCore import QLocale, QTranslator from pathlib import Path import gettext import subprocess @@ -374,4 +374,4 @@ if __name__ == '__main__': gettext.install('mambabase', '/usr/share/locale') wizard = MambabaseWizard() wizard.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/mambabase/update-translations.sh b/mambabase/update-translations.sh index bd63794..91f39b5 100755 --- a/mambabase/update-translations.sh +++ b/mambabase/update-translations.sh @@ -1,4 +1,4 @@ #!/bin/bash xgettext -s -o - mambabase.py --output=po/messages.pot msgmerge --update --no-fuzzy-matching --backup=off po/it.po po/messages.pot -lupdate-qt5 *.ui -ts mambabase_it.ts +lupdate-qt6 *.ui -ts mambabase_it.ts