-
Notifications
You must be signed in to change notification settings - Fork 0
/
NotesUI.py
123 lines (117 loc) · 6.65 KB
/
NotesUI.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
# -*- coding: utf-8 -*-
#GitHub : @CodeYard01
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setEnabled(True)
MainWindow.resize(259, 361)
icon = QtGui.QIcon.fromTheme("normal")
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.frame = QtWidgets.QFrame(self.centralwidget)
self.frame.setGeometry(QtCore.QRect(-320, -120, 2621, 1161))
self.frame.setCursor(QtGui.QCursor(QtCore.Qt.IBeamCursor))
self.frame.setStyleSheet("backgroundcolor:qconicalgradient(cx:0.463, cy:1, angle:0, stop:0 rgba(17, 79, 178, 255), stop:1 rgba(255, 255, 255, 255))")
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.textEdit = QtWidgets.QTextEdit(self.frame)
self.textEdit.setGeometry(QtCore.QRect(90, -10, 1271, 981))
self.textEdit.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.textEdit.setStyleSheet("background-color: rgb(249, 240, 107);\n"
"border:transparent;\n"
"color: rgb(246, 245, 244);\n"
"")
self.textEdit.setObjectName("textEdit")
self.horizontalLayoutWidget = QtWidgets.QWidget(self.frame)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(320, 120, 271, 31))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 172, 0)
self.horizontalLayout.setSpacing(3)
self.horizontalLayout.setObjectName("horizontalLayout")
self.pushButton = QtWidgets.QPushButton(self.horizontalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth())
self.pushButton.setSizePolicy(sizePolicy)
self.pushButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton.setStyleSheet("border:none;\n"
"color: rgb(28, 113, 216);\n"
"background-color:transparent;\n"
"")
self.pushButton.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("post-it.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton.setIcon(icon)
self.pushButton.setObjectName("pushButton")
self.horizontalLayout.addWidget(self.pushButton)
self.addbtn = QtWidgets.QPushButton(self.horizontalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.addbtn.sizePolicy().hasHeightForWidth())
self.addbtn.setSizePolicy(sizePolicy)
self.addbtn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.addbtn.setAutoFillBackground(False)
self.addbtn.setStyleSheet("border:none;\n"
"color: rgb(28, 113, 216);\n"
"background-color: transparent;")
self.addbtn.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap("add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.addbtn.setIcon(icon1)
self.addbtn.setIconSize(QtCore.QSize(16, 16))
self.addbtn.setObjectName("addbtn")
self.horizontalLayout.addWidget(self.addbtn)
self.delbtn = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.delbtn.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.delbtn.sizePolicy().hasHeightForWidth())
self.delbtn.setSizePolicy(sizePolicy)
self.delbtn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.delbtn.setLayoutDirection(QtCore.Qt.LeftToRight)
self.delbtn.setAutoFillBackground(False)
self.delbtn.setStyleSheet("border:none;\n"
"color: rgb(28, 113, 216);\n"
"background-color:transparent;")
self.delbtn.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap("delete(1).png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.delbtn.setIcon(icon2)
self.delbtn.setObjectName("delbtn")
self.horizontalLayout.addWidget(self.delbtn)
self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.frame)
self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(320, 150, 258, 331))
self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.textEdit_2 = QtWidgets.QTextEdit(self.horizontalLayoutWidget_2)
self.textEdit_2.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.IBeamCursor))
self.textEdit_2.setStyleSheet("background-color: transparent;\n"
"font: 75 14pt \"Monospace\";\n"
"")
self.textEdit_2.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.textEdit_2.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.textEdit_2.setObjectName("textEdit_2")
self.horizontalLayout_2.addWidget(self.textEdit_2)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Sticky Notes"))
self.textEdit.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Cantarell\'; font-size:11pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))