trying with pyside2
This commit is contained in:
parent
7fb4a4c7db
commit
4301e68d3f
2
build.sh
2
build.sh
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
for ui in *.ui; do
|
for ui in *.ui; do
|
||||||
pyside6-uic $ui > ${ui%.*}.py
|
pyside2-uic $ui > ${ui%.*}.py
|
||||||
done
|
done
|
9
main.py
9
main.py
@ -6,8 +6,8 @@ from pathlib import Path
|
|||||||
import shutil
|
import shutil
|
||||||
import zlib
|
import zlib
|
||||||
import requests
|
import requests
|
||||||
from PySide6.QtCore import QProcess
|
from PySide2.QtCore import QProcess
|
||||||
from PySide6.QtWidgets import QApplication, QMainWindow, QFileDialog, QMessageBox, QPushButton
|
from PySide2.QtWidgets import QApplication, QMainWindow, QFileDialog, QMessageBox, QPushButton
|
||||||
from mainwindow import Ui_MainWindow
|
from mainwindow import Ui_MainWindow
|
||||||
|
|
||||||
|
|
||||||
@ -169,6 +169,9 @@ if __name__ == "__main__":
|
|||||||
try:
|
try:
|
||||||
window = MainWindow()
|
window = MainWindow()
|
||||||
window.show()
|
window.show()
|
||||||
sys.exit(app.exec())
|
sys.exit(app.exec_())
|
||||||
|
except SystemExit:
|
||||||
|
sys.exit(0)
|
||||||
except:
|
except:
|
||||||
|
traceback.print_exc()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
@ -3,21 +3,15 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
## Form generated from reading UI file 'mainwindow.ui'
|
## Form generated from reading UI file 'mainwindow.ui'
|
||||||
##
|
##
|
||||||
## Created by: Qt User Interface Compiler version 6.2.2
|
## Created by: Qt User Interface Compiler version 5.15.2
|
||||||
##
|
##
|
||||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
from PySide2.QtCore import *
|
||||||
QMetaObject, QObject, QPoint, QRect,
|
from PySide2.QtGui import *
|
||||||
QSize, QTime, QUrl, Qt)
|
from PySide2.QtWidgets import *
|
||||||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
|
||||||
QFont, QFontDatabase, QGradient, QIcon,
|
|
||||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
|
||||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
|
||||||
from PySide6.QtWidgets import (QApplication, QGridLayout, QLabel, QLineEdit,
|
|
||||||
QMainWindow, QMenuBar, QPushButton, QSizePolicy,
|
|
||||||
QWidget)
|
|
||||||
|
|
||||||
class Ui_MainWindow(object):
|
class Ui_MainWindow(object):
|
||||||
def setupUi(self, MainWindow):
|
def setupUi(self, MainWindow):
|
||||||
@ -39,6 +33,7 @@ class Ui_MainWindow(object):
|
|||||||
|
|
||||||
self.pushButton = QPushButton(self.gridLayoutWidget)
|
self.pushButton = QPushButton(self.gridLayoutWidget)
|
||||||
self.pushButton.setObjectName(u"pushButton")
|
self.pushButton.setObjectName(u"pushButton")
|
||||||
|
self.pushButton.setEnabled(False)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.pushButton, 0, 2, 1, 1)
|
self.gridLayout.addWidget(self.pushButton, 0, 2, 1, 1)
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
PySide6
|
PySide2
|
||||||
pyinstaller
|
pyinstaller
|
||||||
requests
|
requests
|
Loading…
Reference in New Issue
Block a user