-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathGetNameDialog.py
117 lines (108 loc) · 5.81 KB
/
GetNameDialog.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GetNameDialog.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_GetNameDialog(object):
def setupUi(self, GetNameDialog):
GetNameDialog.setObjectName("GetNameDialog")
GetNameDialog.resize(565, 171)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(GetNameDialog.sizePolicy().hasHeightForWidth())
GetNameDialog.setSizePolicy(sizePolicy)
GetNameDialog.setMinimumSize(QtCore.QSize(565, 171))
GetNameDialog.setMaximumSize(QtCore.QSize(565, 171))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("IMAGES/logo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
GetNameDialog.setWindowIcon(icon)
GetNameDialog.setModal(True)
self.GetTeamNameButtons = QtWidgets.QDialogButtonBox(GetNameDialog)
self.GetTeamNameButtons.setGeometry(QtCore.QRect(460, 50, 81, 61))
self.GetTeamNameButtons.setOrientation(QtCore.Qt.Vertical)
self.GetTeamNameButtons.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.GetTeamNameButtons.setCenterButtons(True)
self.GetTeamNameButtons.setObjectName("GetTeamNameButtons")
self.BackgroundLbl = QtWidgets.QLabel(GetNameDialog)
self.BackgroundLbl.setGeometry(QtCore.QRect(0, -20, 571, 251))
self.BackgroundLbl.setText("")
self.BackgroundLbl.setPixmap(QtGui.QPixmap("IMAGES/ground2.jpg"))
self.BackgroundLbl.setScaledContents(True)
self.BackgroundLbl.setObjectName("BackgroundLbl")
self.TeamNameLine = QtWidgets.QLineEdit(GetNameDialog)
self.TeamNameLine.setGeometry(QtCore.QRect(110, 70, 321, 31))
font = QtGui.QFont()
font.setFamily("Comic Sans MS")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.TeamNameLine.setFont(font)
self.TeamNameLine.setObjectName("TeamNameLine")
self.CricketerImageLbl = QtWidgets.QLabel(GetNameDialog)
self.CricketerImageLbl.setGeometry(QtCore.QRect(0, 0, 111, 171))
self.CricketerImageLbl.setText("")
self.CricketerImageLbl.setPixmap(QtGui.QPixmap("IMAGES/logo.png"))
self.CricketerImageLbl.setScaledContents(True)
self.CricketerImageLbl.setObjectName("CricketerImageLbl")
self.EnterTeamNameLbl = QtWidgets.QLabel(GetNameDialog)
self.EnterTeamNameLbl.setGeometry(QtCore.QRect(110, 40, 321, 21))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(253, 253, 253))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(254, 254, 254))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(254, 254, 254, 128))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush)
brush = QtGui.QBrush(QtGui.QColor(253, 253, 253))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(254, 254, 254))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(254, 254, 254, 128))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.PlaceholderText, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush)
self.EnterTeamNameLbl.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Ravie")
font.setPointSize(12)
self.EnterTeamNameLbl.setFont(font)
self.EnterTeamNameLbl.setWordWrap(True)
self.EnterTeamNameLbl.setObjectName("EnterTeamNameLbl")
self.BackgroundLbl.raise_()
self.GetTeamNameButtons.raise_()
self.TeamNameLine.raise_()
self.CricketerImageLbl.raise_()
self.EnterTeamNameLbl.raise_()
self.retranslateUi(GetNameDialog)
self.GetTeamNameButtons.accepted.connect(GetNameDialog.accept)
self.GetTeamNameButtons.rejected.connect(GetNameDialog.reject)
QtCore.QMetaObject.connectSlotsByName(GetNameDialog)
def retranslateUi(self, GetNameDialog):
_translate = QtCore.QCoreApplication.translate
GetNameDialog.setWindowTitle(_translate("GetNameDialog", "Fantasy Cricket"))
self.TeamNameLine.setPlaceholderText(_translate("GetNameDialog", "Ex. My Team"))
self.EnterTeamNameLbl.setText(_translate("GetNameDialog", "Enter Your Team Name Here"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
GetNameDialog = QtWidgets.QDialog()
ui = Ui_GetNameDialog()
ui.setupUi(GetNameDialog)
GetNameDialog.show()
sys.exit(app.exec_())