-
Notifications
You must be signed in to change notification settings - Fork 0
/
notewidgetui.py
84 lines (78 loc) · 4.6 KB
/
notewidgetui.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'notewidget.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_NoteWidget(object):
def setupUi(self, NoteWidget):
NoteWidget.setObjectName("NoteWidget")
NoteWidget.resize(300, 300)
NoteWidget.setMinimumSize(QtCore.QSize(300, 300))
NoteWidget.setMaximumSize(QtCore.QSize(300, 300))
NoteWidget.setBaseSize(QtCore.QSize(2, 0))
NoteWidget.setAutoFillBackground(False)
self.verticalLayout_2 = QtWidgets.QVBoxLayout(NoteWidget)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.headingAndDeleteButtonLayout = QtWidgets.QHBoxLayout()
self.headingAndDeleteButtonLayout.setObjectName("headingAndDeleteButtonLayout")
self.headingEdit = QtWidgets.QLineEdit(NoteWidget)
self.headingEdit.setObjectName("headingEdit")
self.headingAndDeleteButtonLayout.addWidget(self.headingEdit)
self.closeButton = QtWidgets.QPushButton(NoteWidget)
self.closeButton.setMinimumSize(QtCore.QSize(20, 20))
self.closeButton.setMaximumSize(QtCore.QSize(20, 20))
self.closeButton.setFocusPolicy(QtCore.Qt.NoFocus)
self.closeButton.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.closeButton.setFlat(True)
self.closeButton.setObjectName("closeButton")
self.headingAndDeleteButtonLayout.addWidget(self.closeButton)
self.verticalLayout.addLayout(self.headingAndDeleteButtonLayout)
self.verticalMoveButtonsAndBodyLayout = QtWidgets.QHBoxLayout()
self.verticalMoveButtonsAndBodyLayout.setObjectName("verticalMoveButtonsAndBodyLayout")
self.verticalMoveButtonsLayout = QtWidgets.QVBoxLayout()
self.verticalMoveButtonsLayout.setObjectName("verticalMoveButtonsLayout")
self.moveUpButton = QtWidgets.QPushButton(NoteWidget)
self.moveUpButton.setMinimumSize(QtCore.QSize(28, 100))
self.moveUpButton.setMaximumSize(QtCore.QSize(28, 16777215))
self.moveUpButton.setFocusPolicy(QtCore.Qt.NoFocus)
self.moveUpButton.setObjectName("moveUpButton")
self.verticalMoveButtonsLayout.addWidget(self.moveUpButton)
self.moveDownButton = QtWidgets.QPushButton(NoteWidget)
self.moveDownButton.setMinimumSize(QtCore.QSize(28, 100))
self.moveDownButton.setMaximumSize(QtCore.QSize(28, 16777215))
self.moveDownButton.setFocusPolicy(QtCore.Qt.NoFocus)
self.moveDownButton.setObjectName("moveDownButton")
self.verticalMoveButtonsLayout.addWidget(self.moveDownButton)
self.verticalMoveButtonsAndBodyLayout.addLayout(self.verticalMoveButtonsLayout)
self.bodyEdit = QtWidgets.QPlainTextEdit(NoteWidget)
self.bodyEdit.setObjectName("bodyEdit")
self.verticalMoveButtonsAndBodyLayout.addWidget(self.bodyEdit)
self.verticalLayout.addLayout(self.verticalMoveButtonsAndBodyLayout)
self.horizontalMoveButtonsLayout = QtWidgets.QHBoxLayout()
self.horizontalMoveButtonsLayout.setObjectName("horizontalMoveButtonsLayout")
self.moveLeftButton = QtWidgets.QPushButton(NoteWidget)
self.moveLeftButton.setFocusPolicy(QtCore.Qt.NoFocus)
self.moveLeftButton.setObjectName("moveLeftButton")
self.horizontalMoveButtonsLayout.addWidget(self.moveLeftButton)
self.moveRightButton = QtWidgets.QPushButton(NoteWidget)
self.moveRightButton.setFocusPolicy(QtCore.Qt.NoFocus)
self.moveRightButton.setObjectName("moveRightButton")
self.horizontalMoveButtonsLayout.addWidget(self.moveRightButton)
self.verticalLayout.addLayout(self.horizontalMoveButtonsLayout)
self.verticalLayout_2.addLayout(self.verticalLayout)
self.retranslateUi(NoteWidget)
QtCore.QMetaObject.connectSlotsByName(NoteWidget)
NoteWidget.setTabOrder(self.headingEdit, self.closeButton)
NoteWidget.setTabOrder(self.closeButton, self.bodyEdit)
def retranslateUi(self, NoteWidget):
_translate = QtCore.QCoreApplication.translate
NoteWidget.setWindowTitle(_translate("NoteWidget", "Form"))
self.closeButton.setText(_translate("NoteWidget", "X"))
self.moveUpButton.setText(_translate("NoteWidget", "↑"))
self.moveDownButton.setText(_translate("NoteWidget", "↓"))
self.moveLeftButton.setText(_translate("NoteWidget", "←"))
self.moveRightButton.setText(_translate("NoteWidget", "→"))