-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check github for latest release information
- Loading branch information
Simon Ho
committed
Feb 15, 2018
1 parent
df4c0e2
commit b3fa2b9
Showing
7 changed files
with
380 additions
and
8 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
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,179 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Dialog</class> | ||
<widget class="QDialog" name="Dialog"> | ||
<property name="windowModality"> | ||
<enum>Qt::ApplicationModal</enum> | ||
</property> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>396</width> | ||
<height>156</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Software Update</string> | ||
</property> | ||
<property name="modal"> | ||
<bool>true</bool> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QLabel" name="title"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="font"> | ||
<font> | ||
<pointsize>10</pointsize> | ||
<weight>75</weight> | ||
<bold>true</bold> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>Software Update</string> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignCenter</set> | ||
</property> | ||
<property name="openExternalLinks"> | ||
<bool>false</bool> | ||
</property> | ||
<property name="textInteractionFlags"> | ||
<set>Qt::LinksAccessibleByMouse</set> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="mainLayout"> | ||
<item> | ||
<layout class="QVBoxLayout" name="verticalLayout_4"> | ||
<item> | ||
<widget class="QLabel" name="info"> | ||
<property name="text"> | ||
<string/> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_3"> | ||
<item> | ||
<layout class="QGridLayout" name="gridLayout_4"> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="latest_label"> | ||
<property name="font"> | ||
<font> | ||
<weight>75</weight> | ||
<bold>true</bold> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>Latest version:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="current_label"> | ||
<property name="font"> | ||
<font> | ||
<weight>75</weight> | ||
<bold>true</bold> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>Current version:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="QLabel" name="latest_value"> | ||
<property name="text"> | ||
<string/> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="QLabel" name="current_value"> | ||
<property name="text"> | ||
<string/> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<spacer name="horizontalSpacer_2"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</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> | ||
<item> | ||
<layout class="QHBoxLayout" name="buttonsLayout"> | ||
<item> | ||
<spacer name="horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="btn_update"> | ||
<property name="enabled"> | ||
<bool>false</bool> | ||
</property> | ||
<property name="text"> | ||
<string>Update</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="btn_close"> | ||
<property name="text"> | ||
<string>Close</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'update_dialog_qt.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 | ||
|
||
class Ui_Dialog(object): | ||
def setupUi(self, Dialog): | ||
Dialog.setObjectName("Dialog") | ||
Dialog.setWindowModality(QtCore.Qt.ApplicationModal) | ||
Dialog.resize(396, 156) | ||
Dialog.setModal(True) | ||
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) | ||
self.verticalLayout.setObjectName("verticalLayout") | ||
self.title = QtWidgets.QLabel(Dialog) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(self.title.sizePolicy().hasHeightForWidth()) | ||
self.title.setSizePolicy(sizePolicy) | ||
font = QtGui.QFont() | ||
font.setPointSize(10) | ||
font.setBold(True) | ||
font.setWeight(75) | ||
self.title.setFont(font) | ||
self.title.setAlignment(QtCore.Qt.AlignCenter) | ||
self.title.setOpenExternalLinks(False) | ||
self.title.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse) | ||
self.title.setObjectName("title") | ||
self.verticalLayout.addWidget(self.title) | ||
self.mainLayout = QtWidgets.QHBoxLayout() | ||
self.mainLayout.setObjectName("mainLayout") | ||
self.verticalLayout_4 = QtWidgets.QVBoxLayout() | ||
self.verticalLayout_4.setObjectName("verticalLayout_4") | ||
self.info = QtWidgets.QLabel(Dialog) | ||
self.info.setText("") | ||
self.info.setObjectName("info") | ||
self.verticalLayout_4.addWidget(self.info) | ||
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() | ||
self.horizontalLayout_3.setObjectName("horizontalLayout_3") | ||
self.gridLayout_4 = QtWidgets.QGridLayout() | ||
self.gridLayout_4.setObjectName("gridLayout_4") | ||
self.latest_label = QtWidgets.QLabel(Dialog) | ||
font = QtGui.QFont() | ||
font.setBold(True) | ||
font.setWeight(75) | ||
self.latest_label.setFont(font) | ||
self.latest_label.setObjectName("latest_label") | ||
self.gridLayout_4.addWidget(self.latest_label, 0, 0, 1, 1) | ||
self.current_label = QtWidgets.QLabel(Dialog) | ||
font = QtGui.QFont() | ||
font.setBold(True) | ||
font.setWeight(75) | ||
self.current_label.setFont(font) | ||
self.current_label.setObjectName("current_label") | ||
self.gridLayout_4.addWidget(self.current_label, 1, 0, 1, 1) | ||
self.latest_value = QtWidgets.QLabel(Dialog) | ||
self.latest_value.setText("") | ||
self.latest_value.setObjectName("latest_value") | ||
self.gridLayout_4.addWidget(self.latest_value, 0, 1, 1, 1) | ||
self.current_value = QtWidgets.QLabel(Dialog) | ||
self.current_value.setText("") | ||
self.current_value.setObjectName("current_value") | ||
self.gridLayout_4.addWidget(self.current_value, 1, 1, 1, 1) | ||
self.horizontalLayout_3.addLayout(self.gridLayout_4) | ||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) | ||
self.horizontalLayout_3.addItem(spacerItem) | ||
self.verticalLayout_4.addLayout(self.horizontalLayout_3) | ||
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) | ||
self.verticalLayout_4.addItem(spacerItem1) | ||
self.buttonsLayout = QtWidgets.QHBoxLayout() | ||
self.buttonsLayout.setObjectName("buttonsLayout") | ||
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) | ||
self.buttonsLayout.addItem(spacerItem2) | ||
self.btn_update = QtWidgets.QPushButton(Dialog) | ||
self.btn_update.setEnabled(False) | ||
self.btn_update.setObjectName("btn_update") | ||
self.buttonsLayout.addWidget(self.btn_update) | ||
self.btn_close = QtWidgets.QPushButton(Dialog) | ||
self.btn_close.setObjectName("btn_close") | ||
self.buttonsLayout.addWidget(self.btn_close) | ||
self.verticalLayout_4.addLayout(self.buttonsLayout) | ||
self.mainLayout.addLayout(self.verticalLayout_4) | ||
self.verticalLayout.addLayout(self.mainLayout) | ||
|
||
self.retranslateUi(Dialog) | ||
QtCore.QMetaObject.connectSlotsByName(Dialog) | ||
|
||
def retranslateUi(self, Dialog): | ||
_translate = QtCore.QCoreApplication.translate | ||
Dialog.setWindowTitle(_translate("Dialog", "Software Update")) | ||
self.title.setText(_translate("Dialog", "Software Update")) | ||
self.latest_label.setText(_translate("Dialog", "Latest version:")) | ||
self.current_label.setText(_translate("Dialog", "Current version:")) | ||
self.btn_update.setText(_translate("Dialog", "Update")) | ||
self.btn_close.setText(_translate("Dialog", "Close")) | ||
|
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
Oops, something went wrong.