forked from BetaRavener/uPyLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file './gui/qt\about_dialog.ui' | ||
# | ||
# Created by: PyQt5 UI code generator 5.6 | ||
# | ||
# WARNING! All changes made in this file will be lost! | ||
|
||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
|
||
|
||
# Added by buildgui.py script to support pyinstaller | ||
from src.helpers.pyinstaller_helper import PyInstallerHelper | ||
|
||
class Ui_AboutDialog(object): | ||
def setupUi(self, AboutDialog): | ||
AboutDialog.setObjectName("AboutDialog") | ||
AboutDialog.resize(300, 90) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(AboutDialog.sizePolicy().hasHeightForWidth()) | ||
AboutDialog.setSizePolicy(sizePolicy) | ||
AboutDialog.setMinimumSize(QtCore.QSize(300, 90)) | ||
AboutDialog.setMaximumSize(QtCore.QSize(300, 90)) | ||
AboutDialog.setSizeGripEnabled(False) | ||
self.verticalLayout_2 = QtWidgets.QVBoxLayout(AboutDialog) | ||
self.verticalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize) | ||
self.verticalLayout_2.setObjectName("verticalLayout_2") | ||
self.horizontalLayout = QtWidgets.QHBoxLayout() | ||
self.horizontalLayout.setObjectName("horizontalLayout") | ||
self.label = QtWidgets.QLabel(AboutDialog) | ||
self.label.setObjectName("label") | ||
self.horizontalLayout.addWidget(self.label) | ||
spacerItem = QtWidgets.QSpacerItem(100, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) | ||
self.horizontalLayout.addItem(spacerItem) | ||
self.versionLabel = QtWidgets.QLabel(AboutDialog) | ||
self.versionLabel.setObjectName("versionLabel") | ||
self.horizontalLayout.addWidget(self.versionLabel) | ||
self.verticalLayout_2.addLayout(self.horizontalLayout) | ||
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) | ||
self.verticalLayout_2.addItem(spacerItem1) | ||
|
||
self.retranslateUi(AboutDialog) | ||
QtCore.QMetaObject.connectSlotsByName(AboutDialog) | ||
|
||
def retranslateUi(self, AboutDialog): | ||
_translate = QtCore.QCoreApplication.translate | ||
AboutDialog.setWindowTitle(_translate("AboutDialog", "About uPyLoader")) | ||
self.label.setText(_translate("AboutDialog", "Version:")) | ||
self.versionLabel.setText(_translate("AboutDialog", "XXX")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>AboutDialog</class> | ||
<widget class="QDialog" name="AboutDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>300</width> | ||
<height>90</height> | ||
</rect> | ||
</property> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>300</width> | ||
<height>90</height> | ||
</size> | ||
</property> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>300</width> | ||
<height>90</height> | ||
</size> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>About uPyLoader</string> | ||
</property> | ||
<property name="sizeGripEnabled"> | ||
<bool>false</bool> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<property name="sizeConstraint"> | ||
<enum>QLayout::SetFixedSize</enum> | ||
</property> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<widget class="QLabel" name="label"> | ||
<property name="text"> | ||
<string>Version:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeType"> | ||
<enum>QSizePolicy::Fixed</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>100</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="versionLabel"> | ||
<property name="text"> | ||
<string>XXX</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from PyQt5.QtCore import pyqtSignal, Qt | ||
from PyQt5.QtGui import QFontDatabase | ||
from PyQt5.QtWidgets import QMessageBox, QDialog | ||
|
||
from gui.about_dialog import Ui_AboutDialog | ||
from gui.code_edit import Ui_CodeEditDialog | ||
from src.gui.file_transfer_dialog import FileTransferDialog | ||
from src.utility.settings import Settings | ||
|
||
|
||
class AboutDialog(QDialog, Ui_AboutDialog): | ||
def __init__(self, parent): | ||
super(AboutDialog, self).__init__(parent, Qt.WindowCloseButtonHint) | ||
self.setupUi(self) | ||
self.setModal(True) | ||
self.setSizeGripEnabled(False) | ||
self.versionLabel.setText("0.1.3 (dev)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters