mambabase: port to PyQt6
This commit is contained in:
parent
c78c0b5c89
commit
9d10f5b4d2
@ -2,9 +2,9 @@
|
|||||||
# Copyright (c) 2019-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
# Copyright (c) 2019-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
# Release under the terms of the GPL version 3 license
|
# Release under the terms of the GPL version 3 license
|
||||||
|
|
||||||
from PyQt5 import QtGui, QtCore, QtWidgets, uic
|
from PyQt6 import QtGui, QtCore, QtWidgets, uic
|
||||||
from PyQt5.QtCore import pyqtProperty
|
from PyQt6.QtCore import pyqtProperty
|
||||||
from PyQt5.QtCore import QLocale, QTranslator
|
from PyQt6.QtCore import QLocale, QTranslator
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import gettext
|
import gettext
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -374,4 +374,4 @@ if __name__ == '__main__':
|
|||||||
gettext.install('mambabase', '/usr/share/locale')
|
gettext.install('mambabase', '/usr/share/locale')
|
||||||
wizard = MambabaseWizard()
|
wizard = MambabaseWizard()
|
||||||
wizard.show()
|
wizard.show()
|
||||||
sys.exit(app.exec_())
|
sys.exit(app.exec())
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
xgettext -s -o - mambabase.py --output=po/messages.pot
|
xgettext -s -o - mambabase.py --output=po/messages.pot
|
||||||
msgmerge --update --no-fuzzy-matching --backup=off po/it.po 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
|
||||||
|
Loading…
Reference in New Issue
Block a user