Updated GUI
This commit is contained in:
32
ui/main.py
32
ui/main.py
@@ -21,7 +21,7 @@ class Ui_MainWindow(object):
|
|||||||
icon = QtGui.QIcon()
|
icon = QtGui.QIcon()
|
||||||
icon.addPixmap(QtGui.QPixmap(":/img/logo.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon.addPixmap(QtGui.QPixmap(":/img/logo.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
MainWindow.setWindowIcon(icon)
|
MainWindow.setWindowIcon(icon)
|
||||||
MainWindow.setWindowOpacity(0.99)
|
MainWindow.setWindowOpacity(0.97)
|
||||||
MainWindow.setStyleSheet("background-color: #202020;\n"
|
MainWindow.setStyleSheet("background-color: #202020;\n"
|
||||||
"color: #ffffff;")
|
"color: #ffffff;")
|
||||||
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
||||||
@@ -95,6 +95,11 @@ class Ui_MainWindow(object):
|
|||||||
"font: 10pt \"Segoe UI\";")
|
"font: 10pt \"Segoe UI\";")
|
||||||
self.desc_list.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
self.desc_list.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
||||||
self.desc_list.setFrameShadow(QtWidgets.QFrame.Raised)
|
self.desc_list.setFrameShadow(QtWidgets.QFrame.Raised)
|
||||||
|
self.desc_list.setHtml("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
|
"</style></head><body style=\" font-family:\'Segoe UI\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
|
||||||
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>")
|
||||||
self.desc_list.setAcceptRichText(True)
|
self.desc_list.setAcceptRichText(True)
|
||||||
self.desc_list.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
self.desc_list.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
||||||
self.desc_list.setObjectName("desc_list")
|
self.desc_list.setObjectName("desc_list")
|
||||||
@@ -179,16 +184,19 @@ class Ui_MainWindow(object):
|
|||||||
self.choose_icon_button.setObjectName("choose_icon_button")
|
self.choose_icon_button.setObjectName("choose_icon_button")
|
||||||
self.is_pyinstaller = QtWidgets.QRadioButton(self.centralwidget)
|
self.is_pyinstaller = QtWidgets.QRadioButton(self.centralwidget)
|
||||||
self.is_pyinstaller.setGeometry(QtCore.QRect(20, 415, 80, 15))
|
self.is_pyinstaller.setGeometry(QtCore.QRect(20, 415, 80, 15))
|
||||||
self.is_pyinstaller.setStyleSheet("font: 10pt \"Segoe UI\";")
|
self.is_pyinstaller.setStyleSheet("font: 10pt \"Segoe UI\";\n"
|
||||||
|
"background: none;")
|
||||||
self.is_pyinstaller.setChecked(True)
|
self.is_pyinstaller.setChecked(True)
|
||||||
self.is_pyinstaller.setObjectName("is_pyinstaller")
|
self.is_pyinstaller.setObjectName("is_pyinstaller")
|
||||||
self.is_nuitka = QtWidgets.QRadioButton(self.centralwidget)
|
self.is_nuitka = QtWidgets.QRadioButton(self.centralwidget)
|
||||||
self.is_nuitka.setGeometry(QtCore.QRect(20, 435, 80, 15))
|
self.is_nuitka.setGeometry(QtCore.QRect(20, 435, 80, 15))
|
||||||
self.is_nuitka.setStyleSheet("font: 10pt \"Segoe UI\";")
|
self.is_nuitka.setStyleSheet("font: 10pt \"Segoe UI\";\n"
|
||||||
|
"background: none;")
|
||||||
self.is_nuitka.setObjectName("is_nuitka")
|
self.is_nuitka.setObjectName("is_nuitka")
|
||||||
self.label = QtWidgets.QLabel(self.centralwidget)
|
self.label = QtWidgets.QLabel(self.centralwidget)
|
||||||
self.label.setGeometry(QtCore.QRect(20, 390, 90, 25))
|
self.label.setGeometry(QtCore.QRect(20, 390, 90, 25))
|
||||||
self.label.setStyleSheet("font: 10pt \"Segoe UI\";")
|
self.label.setStyleSheet("font: 10pt \"Segoe UI\";\n"
|
||||||
|
"background: none;")
|
||||||
self.label.setObjectName("label")
|
self.label.setObjectName("label")
|
||||||
self.builder_bg = QtWidgets.QWidget(self.centralwidget)
|
self.builder_bg = QtWidgets.QWidget(self.centralwidget)
|
||||||
self.builder_bg.setGeometry(QtCore.QRect(10, 389, 121, 71))
|
self.builder_bg.setGeometry(QtCore.QRect(10, 389, 121, 71))
|
||||||
@@ -212,7 +220,8 @@ class Ui_MainWindow(object):
|
|||||||
self.options_bg.setObjectName("options_bg")
|
self.options_bg.setObjectName("options_bg")
|
||||||
self.enable_console_button = QtWidgets.QCheckBox(self.centralwidget)
|
self.enable_console_button = QtWidgets.QCheckBox(self.centralwidget)
|
||||||
self.enable_console_button.setGeometry(QtCore.QRect(150, 400, 121, 17))
|
self.enable_console_button.setGeometry(QtCore.QRect(150, 400, 121, 17))
|
||||||
self.enable_console_button.setStyleSheet("font: 10pt \"Segoe UI\";")
|
self.enable_console_button.setStyleSheet("font: 10pt \"Segoe UI\";\n"
|
||||||
|
"background: none;")
|
||||||
self.enable_console_button.setObjectName("enable_console_button")
|
self.enable_console_button.setObjectName("enable_console_button")
|
||||||
self.builder_bg.raise_()
|
self.builder_bg.raise_()
|
||||||
self.build_button.raise_()
|
self.build_button.raise_()
|
||||||
@@ -236,14 +245,7 @@ class Ui_MainWindow(object):
|
|||||||
_translate = QtCore.QCoreApplication.translate
|
_translate = QtCore.QCoreApplication.translate
|
||||||
MainWindow.setWindowTitle(_translate("MainWindow", "daun builder"))
|
MainWindow.setWindowTitle(_translate("MainWindow", "daun builder"))
|
||||||
self.build_button.setText(_translate("MainWindow", "Build it"))
|
self.build_button.setText(_translate("MainWindow", "Build it"))
|
||||||
self.desc_list.setHtml(_translate("MainWindow",
|
self.daun_builder_logo.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
|
||||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
|
||||||
"p, li { white-space: pre-wrap; }\n"
|
|
||||||
"</style></head><body style=\" font-family:\'Segoe UI\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
|
|
||||||
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
|
|
||||||
self.daun_builder_logo.setHtml(_translate("MainWindow",
|
|
||||||
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
|
||||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'Segoe UI\'; font-size:20pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'Segoe UI\'; font-size:20pt; font-weight:400; font-style:normal;\">\n"
|
||||||
@@ -254,13 +256,11 @@ class Ui_MainWindow(object):
|
|||||||
self.is_nuitka.setText(_translate("MainWindow", "nuitka"))
|
self.is_nuitka.setText(_translate("MainWindow", "nuitka"))
|
||||||
self.label.setText(_translate("MainWindow", "Choose builder"))
|
self.label.setText(_translate("MainWindow", "Choose builder"))
|
||||||
self.enable_console_button.setText(_translate("MainWindow", "Invisible window"))
|
self.enable_console_button.setText(_translate("MainWindow", "Invisible window"))
|
||||||
|
|
||||||
|
|
||||||
import images_rc
|
import images_rc
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
app = QtWidgets.QApplication(sys.argv)
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
MainWindow = QtWidgets.QMainWindow()
|
MainWindow = QtWidgets.QMainWindow()
|
||||||
ui = Ui_MainWindow()
|
ui = Ui_MainWindow()
|
||||||
|
|||||||
14
ui/main.ui
14
ui/main.ui
@@ -33,7 +33,7 @@
|
|||||||
<normaloff>:/img/logo.ico</normaloff>:/img/logo.ico</iconset>
|
<normaloff>:/img/logo.ico</normaloff>:/img/logo.ico</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowOpacity">
|
<property name="windowOpacity">
|
||||||
<double>0.990000000000000</double>
|
<double>0.970000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">background-color: #202020;
|
<string notr="true">background-color: #202020;
|
||||||
@@ -349,7 +349,8 @@ QPushButton:disabled{
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">font: 10pt "Segoe UI";</string>
|
<string notr="true">font: 10pt "Segoe UI";
|
||||||
|
background: none;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>pyinstaller</string>
|
<string>pyinstaller</string>
|
||||||
@@ -368,7 +369,8 @@ QPushButton:disabled{
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">font: 10pt "Segoe UI";</string>
|
<string notr="true">font: 10pt "Segoe UI";
|
||||||
|
background: none;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>nuitka</string>
|
<string>nuitka</string>
|
||||||
@@ -384,7 +386,8 @@ QPushButton:disabled{
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">font: 10pt "Segoe UI";</string>
|
<string notr="true">font: 10pt "Segoe UI";
|
||||||
|
background: none;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Choose builder</string>
|
<string>Choose builder</string>
|
||||||
@@ -438,7 +441,8 @@ font: 10pt "Segoe UI";</string>
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">font: 10pt "Segoe UI";</string>
|
<string notr="true">font: 10pt "Segoe UI";
|
||||||
|
background: none;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Invisible window</string>
|
<string>Invisible window</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user