-
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
7 changed files
with
10,538 additions
and
9,810 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ venv/ | |
|
||
imgs/ | ||
.idea/ | ||
*.spec |
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,9 @@ | ||
from PyQt5.QtWidgets import QDialog | ||
|
||
from MsgBoxModel import Ui_Dialog | ||
|
||
|
||
class MsgBox(QDialog, Ui_Dialog): | ||
def __init__(self, parent=None): | ||
super(MsgBox, self).__init__(parent) | ||
self.setupUi(self) |
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,65 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'MsgBox.ui' | ||
# | ||
# Created by: PyQt5 UI code generator 5.15.1 | ||
# | ||
# WARNING: Any manual changes made to this file will be lost when pyuic5 is | ||
# run again. Do not edit this file unless you know what you are doing. | ||
|
||
|
||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
import icons_rc | ||
import ctypes | ||
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("myappid") | ||
|
||
|
||
class Ui_Dialog(object): | ||
def setupUi(self, Dialog): | ||
Dialog.setObjectName("Dialog") | ||
Dialog.resize(438, 146) | ||
icon = QtGui.QIcon() | ||
icon.addPixmap(QtGui.QPixmap(":/imgs/warning.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) | ||
Dialog.setWindowIcon(icon) | ||
self.verticalLayout_2 = QtWidgets.QVBoxLayout(Dialog) | ||
self.verticalLayout_2.setObjectName("verticalLayout_2") | ||
self.verticalLayout = QtWidgets.QVBoxLayout() | ||
self.verticalLayout.setObjectName("verticalLayout") | ||
self.horizontalLayout = QtWidgets.QHBoxLayout() | ||
self.horizontalLayout.setObjectName("horizontalLayout") | ||
self.label = QtWidgets.QLabel(Dialog) | ||
self.label.setStyleSheet("border-image: url(:/imgs/warning.png);") | ||
self.label.setText("") | ||
self.label.setObjectName("label") | ||
self.horizontalLayout.addWidget(self.label) | ||
self.label_2 = QtWidgets.QLabel(Dialog) | ||
font = QtGui.QFont() | ||
font.setFamily("Times New Roman") | ||
font.setPointSize(11) | ||
font.setBold(True) | ||
font.setWeight(75) | ||
self.label_2.setFont(font) | ||
self.label_2.setStyleSheet("color: rgb(255, 0, 0);") | ||
self.label_2.setAlignment(QtCore.Qt.AlignCenter) | ||
self.label_2.setObjectName("label_2") | ||
self.horizontalLayout.addWidget(self.label_2) | ||
self.horizontalLayout.setStretch(0, 1) | ||
self.horizontalLayout.setStretch(1, 2) | ||
self.verticalLayout.addLayout(self.horizontalLayout) | ||
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) | ||
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) | ||
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) | ||
self.buttonBox.setObjectName("buttonBox") | ||
self.verticalLayout.addWidget(self.buttonBox) | ||
self.verticalLayout_2.addLayout(self.verticalLayout) | ||
|
||
self.retranslateUi(Dialog) | ||
self.buttonBox.accepted.connect(Dialog.accept) | ||
self.buttonBox.rejected.connect(Dialog.reject) | ||
QtCore.QMetaObject.connectSlotsByName(Dialog) | ||
|
||
def retranslateUi(self, Dialog): | ||
_translate = QtCore.QCoreApplication.translate | ||
Dialog.setWindowTitle(_translate("Dialog", "Dialog")) | ||
self.label_2.setText(_translate("Dialog", "You Should run the app as an Administrator!!")) | ||
|
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.