-
Notifications
You must be signed in to change notification settings - Fork 0
/
AboutMe.py
330 lines (323 loc) · 18.1 KB
/
AboutMe.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'AboutMe.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# 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
class Ui_AboutDialog(object):
def setupUi(self, AboutDialog):
AboutDialog.setObjectName("AboutDialog")
AboutDialog.resize(528, 510)
AboutDialog.setStyleSheet("\n"
"background-color:#ffecd9;")
self.gridLayout = QtWidgets.QGridLayout(AboutDialog)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setSpacing(0)
self.gridLayout.setObjectName("gridLayout")
self.MainFrame = QtWidgets.QFrame(AboutDialog)
self.MainFrame.setMinimumSize(QtCore.QSize(408, 350))
self.MainFrame.setStyleSheet("")
self.MainFrame.setFrameShape(QtWidgets.QFrame.NoFrame)
self.MainFrame.setFrameShadow(QtWidgets.QFrame.Plain)
self.MainFrame.setObjectName("MainFrame")
self.verticalLayout = QtWidgets.QVBoxLayout(self.MainFrame)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.TopFrame = QtWidgets.QFrame(self.MainFrame)
self.TopFrame.setMinimumSize(QtCore.QSize(0, 55))
self.TopFrame.setStyleSheet("background:rgb(51,51,51);")
self.TopFrame.setFrameShape(QtWidgets.QFrame.NoFrame)
self.TopFrame.setFrameShadow(QtWidgets.QFrame.Plain)
self.TopFrame.setObjectName("TopFrame")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.TopFrame)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.westTopFrame = QtWidgets.QFrame(self.TopFrame)
self.westTopFrame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.westTopFrame.setFrameShadow(QtWidgets.QFrame.Raised)
self.westTopFrame.setObjectName("westTopFrame")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.westTopFrame)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.horizontalLayout_2.addWidget(self.westTopFrame)
self.minBtnFrame = QtWidgets.QFrame(self.TopFrame)
self.minBtnFrame.setMinimumSize(QtCore.QSize(55, 55))
self.minBtnFrame.setMaximumSize(QtCore.QSize(55, 55))
self.minBtnFrame.setStyleSheet("background:transparent;")
self.minBtnFrame.setFrameShape(QtWidgets.QFrame.NoFrame)
self.minBtnFrame.setFrameShadow(QtWidgets.QFrame.Plain)
self.minBtnFrame.setObjectName("minBtnFrame")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.minBtnFrame)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setSpacing(0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.minBtn = QtWidgets.QPushButton(self.minBtnFrame)
self.minBtn.setMinimumSize(QtCore.QSize(30, 30))
self.minBtn.setMaximumSize(QtCore.QSize(30, 30))
self.minBtn.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/resources/042-minus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.minBtn.setIcon(icon)
self.minBtn.setIconSize(QtCore.QSize(30, 30))
self.minBtn.setAutoDefault(False)
self.minBtn.setFlat(True)
self.minBtn.setObjectName("minBtn")
self.horizontalLayout_4.addWidget(self.minBtn)
self.horizontalLayout_2.addWidget(self.minBtnFrame)
self.closeBtnFrame = QtWidgets.QFrame(self.TopFrame)
self.closeBtnFrame.setMinimumSize(QtCore.QSize(55, 55))
self.closeBtnFrame.setMaximumSize(QtCore.QSize(55, 55))
self.closeBtnFrame.setStyleSheet("background:transparent;")
self.closeBtnFrame.setFrameShape(QtWidgets.QFrame.NoFrame)
self.closeBtnFrame.setFrameShadow(QtWidgets.QFrame.Plain)
self.closeBtnFrame.setObjectName("closeBtnFrame")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.closeBtnFrame)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.closeBtn = QtWidgets.QPushButton(self.closeBtnFrame)
self.closeBtn.setMinimumSize(QtCore.QSize(30, 30))
self.closeBtn.setMaximumSize(QtCore.QSize(30, 30))
self.closeBtn.setStyleSheet("QPushButton {\n"
" border: none;\n"
" background-color: rgba(0,0,0,0);\n"
"}\n"
"QPushButton:hover {\n"
" background:rgb(61, 61, 61)\n"
"}\n"
"QPushButton:pressed { \n"
" background-color: rgba(0,0,0,0);\n"
"}")
self.closeBtn.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icons/resources/cancel (2).png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.closeBtn.setIcon(icon1)
self.closeBtn.setIconSize(QtCore.QSize(30, 30))
self.closeBtn.setAutoDefault(False)
self.closeBtn.setFlat(True)
self.closeBtn.setObjectName("closeBtn")
self.horizontalLayout.addWidget(self.closeBtn)
self.horizontalLayout_2.addWidget(self.closeBtnFrame)
self.verticalLayout.addWidget(self.TopFrame)
self.centerStackedWidget = QtWidgets.QStackedWidget(self.MainFrame)
self.centerStackedWidget.setStyleSheet("")
self.centerStackedWidget.setFrameShape(QtWidgets.QFrame.NoFrame)
self.centerStackedWidget.setFrameShadow(QtWidgets.QFrame.Plain)
self.centerStackedWidget.setObjectName("centerStackedWidget")
self.AboutMe = QtWidgets.QWidget()
self.AboutMe.setStyleSheet("background:transparent;")
self.AboutMe.setObjectName("AboutMe")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.AboutMe)
self.verticalLayout_3.setContentsMargins(0, 25, 0, 0)
self.verticalLayout_3.setSpacing(15)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.statusLabel = QtWidgets.QLabel(self.AboutMe)
self.statusLabel.setStyleSheet("color:red;")
self.statusLabel.setText("")
self.statusLabel.setAlignment(QtCore.Qt.AlignCenter)
self.statusLabel.setIndent(0)
self.statusLabel.setObjectName("statusLabel")
self.verticalLayout_3.addWidget(self.statusLabel)
self.frame_6 = QtWidgets.QFrame(self.AboutMe)
self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_6.setObjectName("frame_6")
self.horizontalLayout_16 = QtWidgets.QHBoxLayout(self.frame_6)
self.horizontalLayout_16.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_16.setSpacing(0)
self.horizontalLayout_16.setObjectName("horizontalLayout_16")
self.frame_10 = QtWidgets.QFrame(self.frame_6)
self.frame_10.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frame_10.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_10.setObjectName("frame_10")
self.horizontalLayout_15 = QtWidgets.QHBoxLayout(self.frame_10)
self.horizontalLayout_15.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_15.setSpacing(0)
self.horizontalLayout_15.setObjectName("horizontalLayout_15")
self.label = QtWidgets.QLabel(self.frame_10)
self.label.setMinimumSize(QtCore.QSize(55, 55))
self.label.setMaximumSize(QtCore.QSize(55, 55))
self.label.setText("")
self.label.setPixmap(QtGui.QPixmap(":/icons/resources/account.png"))
self.label.setScaledContents(True)
self.label.setObjectName("label")
self.horizontalLayout_15.addWidget(self.label)
self.horizontalLayout_16.addWidget(self.frame_10)
self.verticalLayout_3.addWidget(self.frame_6)
self.frame = QtWidgets.QFrame(self.AboutMe)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_3.setSpacing(0)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.frame_2 = QtWidgets.QFrame(self.frame)
self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_2.setObjectName("frame_2")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.frame_2)
self.horizontalLayout_5.setContentsMargins(6, 0, 0, 0)
self.horizontalLayout_5.setSpacing(0)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_5.addItem(spacerItem)
self.NameIcon = QtWidgets.QLabel(self.frame_2)
self.NameIcon.setMaximumSize(QtCore.QSize(55, 55))
self.NameIcon.setText("")
self.NameIcon.setPixmap(QtGui.QPixmap(":/icons/resources/author.png"))
self.NameIcon.setScaledContents(True)
self.NameIcon.setObjectName("NameIcon")
self.horizontalLayout_5.addWidget(self.NameIcon)
self.Name = QtWidgets.QLabel(self.frame_2)
self.Name.setMinimumSize(QtCore.QSize(55, 55))
self.Name.setMaximumSize(QtCore.QSize(16777215, 55))
font = QtGui.QFont()
font.setFamily("Courier")
font.setPointSize(12)
self.Name.setFont(font)
self.Name.setObjectName("Name")
self.horizontalLayout_5.addWidget(self.Name)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_5.addItem(spacerItem1)
self.horizontalLayout_3.addWidget(self.frame_2)
self.verticalLayout_3.addWidget(self.frame)
self.frame_3 = QtWidgets.QFrame(self.AboutMe)
self.frame_3.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frame_3.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_3.setObjectName("frame_3")
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.frame_3)
self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_8.setSpacing(0)
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.frame_4 = QtWidgets.QFrame(self.frame_3)
self.frame_4.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frame_4.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_4.setObjectName("frame_4")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.frame_4)
self.horizontalLayout_7.setContentsMargins(6, 0, 0, 0)
self.horizontalLayout_7.setSpacing(0)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_7.addItem(spacerItem2)
self.EmaiIcon = QtWidgets.QLabel(self.frame_4)
self.EmaiIcon.setMaximumSize(QtCore.QSize(55, 55))
self.EmaiIcon.setText("")
self.EmaiIcon.setPixmap(QtGui.QPixmap(":/icons/resources/email.png"))
self.EmaiIcon.setScaledContents(True)
self.EmaiIcon.setObjectName("EmaiIcon")
self.horizontalLayout_7.addWidget(self.EmaiIcon)
self.Email = QtWidgets.QLabel(self.frame_4)
self.Email.setMinimumSize(QtCore.QSize(55, 55))
self.Email.setMaximumSize(QtCore.QSize(16777215, 55))
font = QtGui.QFont()
font.setFamily("Courier")
font.setPointSize(12)
self.Email.setFont(font)
self.Email.setOpenExternalLinks(True)
self.Email.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
self.Email.setObjectName("Email")
self.horizontalLayout_7.addWidget(self.Email)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_7.addItem(spacerItem3)
self.horizontalLayout_8.addWidget(self.frame_4)
self.verticalLayout_3.addWidget(self.frame_3)
self.frame_8 = QtWidgets.QFrame(self.AboutMe)
self.frame_8.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frame_8.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_8.setObjectName("frame_8")
self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.frame_8)
self.horizontalLayout_12.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_12.setSpacing(0)
self.horizontalLayout_12.setObjectName("horizontalLayout_12")
self.frame_9 = QtWidgets.QFrame(self.frame_8)
self.frame_9.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frame_9.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_9.setObjectName("frame_9")
self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.frame_9)
self.horizontalLayout_11.setContentsMargins(6, 0, 0, 0)
self.horizontalLayout_11.setSpacing(0)
self.horizontalLayout_11.setObjectName("horizontalLayout_11")
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_11.addItem(spacerItem4)
self.LinkedinIcon = QtWidgets.QLabel(self.frame_9)
self.LinkedinIcon.setMaximumSize(QtCore.QSize(55, 55))
self.LinkedinIcon.setText("")
self.LinkedinIcon.setPixmap(QtGui.QPixmap(":/icons/resources/linkedin(1).png"))
self.LinkedinIcon.setScaledContents(True)
self.LinkedinIcon.setObjectName("LinkedinIcon")
self.horizontalLayout_11.addWidget(self.LinkedinIcon)
self.Linkedin = QtWidgets.QLabel(self.frame_9)
self.Linkedin.setMinimumSize(QtCore.QSize(55, 55))
self.Linkedin.setMaximumSize(QtCore.QSize(16777215, 55))
font = QtGui.QFont()
font.setFamily("Courier")
font.setPointSize(12)
self.Linkedin.setFont(font)
self.Linkedin.setOpenExternalLinks(True)
self.Linkedin.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
self.Linkedin.setObjectName("Linkedin")
self.horizontalLayout_11.addWidget(self.Linkedin)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_11.addItem(spacerItem5)
self.horizontalLayout_12.addWidget(self.frame_9)
self.verticalLayout_3.addWidget(self.frame_8)
self.frame_5 = QtWidgets.QFrame(self.AboutMe)
self.frame_5.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frame_5.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_5.setObjectName("frame_5")
self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.frame_5)
self.horizontalLayout_10.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_10.setSpacing(0)
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
self.frame_7 = QtWidgets.QFrame(self.frame_5)
self.frame_7.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frame_7.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_7.setObjectName("frame_7")
self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.frame_7)
self.horizontalLayout_9.setContentsMargins(6, 0, 0, 0)
self.horizontalLayout_9.setSpacing(0)
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_9.addItem(spacerItem6)
self.GithubIcon = QtWidgets.QLabel(self.frame_7)
self.GithubIcon.setMaximumSize(QtCore.QSize(55, 55))
self.GithubIcon.setText("")
self.GithubIcon.setPixmap(QtGui.QPixmap(":/icons/resources/github.png"))
self.GithubIcon.setScaledContents(True)
self.GithubIcon.setObjectName("GithubIcon")
self.horizontalLayout_9.addWidget(self.GithubIcon)
self.Github = QtWidgets.QLabel(self.frame_7)
self.Github.setMinimumSize(QtCore.QSize(55, 55))
self.Github.setMaximumSize(QtCore.QSize(16777215, 55))
font = QtGui.QFont()
font.setFamily("Courier")
font.setPointSize(12)
self.Github.setFont(font)
self.Github.setOpenExternalLinks(True)
self.Github.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
self.Github.setObjectName("Github")
self.horizontalLayout_9.addWidget(self.Github)
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_9.addItem(spacerItem7)
self.horizontalLayout_10.addWidget(self.frame_7)
self.verticalLayout_3.addWidget(self.frame_5)
spacerItem8 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem8)
self.centerStackedWidget.addWidget(self.AboutMe)
self.verticalLayout.addWidget(self.centerStackedWidget)
self.gridLayout.addWidget(self.MainFrame, 0, 0, 1, 1)
self.retranslateUi(AboutDialog)
self.centerStackedWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(AboutDialog)
def retranslateUi(self, AboutDialog):
_translate = QtCore.QCoreApplication.translate
AboutDialog.setWindowTitle(_translate("AboutDialog", "Dialog"))
self.Name.setText(_translate("AboutDialog", " :Hussein Elsherbini"))
self.Email.setText(_translate("AboutDialog", " :[email protected]"))
self.Linkedin.setText(_translate("AboutDialog", " :www.linkedin.com/in/h-elsherbini"))
self.Github.setText(_translate("AboutDialog", " :https://github.com/HusseinElsherbini"))
import resources