-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui_test1.py
198 lines (188 loc) · 10.6 KB
/
ui_test1.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_test1.ui'
#
# Created by: PyQt4 UI code generator 4.12
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(800, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.frame = QtGui.QFrame(self.centralwidget)
self.frame.setGeometry(QtCore.QRect(20, 10, 631, 111))
self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName(_fromUtf8("frame"))
self.label = QtGui.QLabel(self.frame)
self.label.setGeometry(QtCore.QRect(10, 10, 121, 21))
self.label.setObjectName(_fromUtf8("label"))
self.label_2 = QtGui.QLabel(self.frame)
self.label_2.setGeometry(QtCore.QRect(10, 40, 69, 21))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.label_3 = QtGui.QLabel(self.frame)
self.label_3.setGeometry(QtCore.QRect(10, 70, 69, 21))
self.label_3.setObjectName(_fromUtf8("label_3"))
self.lineEdit = QtGui.QLineEdit(self.frame)
self.lineEdit.setGeometry(QtCore.QRect(130, 10, 113, 33))
self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
self.lineEdit_2 = QtGui.QLineEdit(self.frame)
self.lineEdit_2.setGeometry(QtCore.QRect(130, 40, 251, 33))
self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
self.lineEdit_3 = QtGui.QLineEdit(self.frame)
self.lineEdit_3.setGeometry(QtCore.QRect(130, 70, 251, 33))
self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
self.dateEdit = QtGui.QDateEdit(self.frame)
self.dateEdit.setGeometry(QtCore.QRect(520, 0, 110, 33))
self.dateEdit.setObjectName(_fromUtf8("dateEdit"))
self.frame_2 = QtGui.QFrame(self.centralwidget)
self.frame_2.setGeometry(QtCore.QRect(20, 320, 631, 111))
self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
self.frame_2.setObjectName(_fromUtf8("frame_2"))
self.label_4 = QtGui.QLabel(self.frame_2)
self.label_4.setGeometry(QtCore.QRect(0, 0, 131, 21))
self.label_4.setObjectName(_fromUtf8("label_4"))
self.textEdit = QtGui.QTextEdit(self.frame_2)
self.textEdit.setGeometry(QtCore.QRect(0, 20, 631, 81))
self.textEdit.setObjectName(_fromUtf8("textEdit"))
self.frame_3 = QtGui.QFrame(self.centralwidget)
self.frame_3.setGeometry(QtCore.QRect(20, 130, 631, 181))
self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame_3.setFrameShadow(QtGui.QFrame.Raised)
self.frame_3.setObjectName(_fromUtf8("frame_3"))
self.label_5 = QtGui.QLabel(self.frame_3)
self.label_5.setGeometry(QtCore.QRect(0, 0, 131, 21))
self.label_5.setObjectName(_fromUtf8("label_5"))
self.tableView = QtGui.QTableView(self.frame_3)
self.tableView.setGeometry(QtCore.QRect(0, 20, 621, 151))
self.tableView.setObjectName(_fromUtf8("tableView"))
self.horizontalLayoutWidget = QtGui.QWidget(self.centralwidget)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(18, 450, 631, 80))
self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.pushButton_2 = QtGui.QPushButton(self.horizontalLayoutWidget)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.buttonGroup = QtGui.QButtonGroup(MainWindow)
self.buttonGroup.setObjectName(_fromUtf8("buttonGroup"))
self.buttonGroup.addButton(self.pushButton_2)
self.horizontalLayout.addWidget(self.pushButton_2)
self.pushButton = QtGui.QPushButton(self.horizontalLayoutWidget)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.buttonGroup.addButton(self.pushButton)
self.horizontalLayout.addWidget(self.pushButton)
self.pushButton_3 = QtGui.QPushButton(self.horizontalLayoutWidget)
self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
self.buttonGroup.addButton(self.pushButton_3)
self.horizontalLayout.addWidget(self.pushButton_3)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 27))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
self.menuOptions = QtGui.QMenu(self.menubar)
self.menuOptions.setObjectName(_fromUtf8("menuOptions"))
self.menuAdmin = QtGui.QMenu(self.menubar)
self.menuAdmin.setObjectName(_fromUtf8("menuAdmin"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.actionNew = QtGui.QAction(MainWindow)
self.actionNew.setObjectName(_fromUtf8("actionNew"))
self.actionOpen = QtGui.QAction(MainWindow)
self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
self.actionSave = QtGui.QAction(MainWindow)
self.actionSave.setObjectName(_fromUtf8("actionSave"))
self.actionExit = QtGui.QAction(MainWindow)
self.actionExit.setObjectName(_fromUtf8("actionExit"))
self.actionDelete = QtGui.QAction(MainWindow)
self.actionDelete.setObjectName(_fromUtf8("actionDelete"))
self.actionClose = QtGui.QAction(MainWindow)
self.actionClose.setObjectName(_fromUtf8("actionClose"))
self.actionLocal_opstions = QtGui.QAction(MainWindow)
self.actionLocal_opstions.setObjectName(_fromUtf8("actionLocal_opstions"))
self.actionGlobal_options = QtGui.QAction(MainWindow)
self.actionGlobal_options.setObjectName(_fromUtf8("actionGlobal_options"))
self.actionBackup = QtGui.QAction(MainWindow)
self.actionBackup.setObjectName(_fromUtf8("actionBackup"))
self.actionRestore = QtGui.QAction(MainWindow)
self.actionRestore.setObjectName(_fromUtf8("actionRestore"))
self.actionAcoounts = QtGui.QAction(MainWindow)
self.actionAcoounts.setObjectName(_fromUtf8("actionAcoounts"))
self.menuFile.addAction(self.actionNew)
self.menuFile.addAction(self.actionOpen)
self.menuFile.addAction(self.actionSave)
self.menuFile.addAction(self.actionExit)
self.menuFile.addAction(self.actionDelete)
self.menuFile.addAction(self.actionClose)
self.menuOptions.addAction(self.actionLocal_opstions)
self.menuOptions.addAction(self.actionGlobal_options)
self.menuAdmin.addAction(self.actionBackup)
self.menuAdmin.addAction(self.actionRestore)
self.menuAdmin.addAction(self.actionAcoounts)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuOptions.menuAction())
self.menubar.addAction(self.menuAdmin.menuAction())
self.retranslateUi(MainWindow)
QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.close)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.close)
QtCore.QObject.connect(self.pushButton_3, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.close)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.lineEdit, self.lineEdit_2)
MainWindow.setTabOrder(self.lineEdit_2, self.lineEdit_3)
MainWindow.setTabOrder(self.lineEdit_3, self.dateEdit)
MainWindow.setTabOrder(self.dateEdit, self.tableView)
MainWindow.setTabOrder(self.tableView, self.textEdit)
MainWindow.setTabOrder(self.textEdit, self.pushButton_2)
MainWindow.setTabOrder(self.pushButton_2, self.pushButton)
MainWindow.setTabOrder(self.pushButton, self.pushButton_3)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
self.label.setText(_translate("MainWindow", "Account number", None))
self.label_2.setText(_translate("MainWindow", "Name", None))
self.label_3.setText(_translate("MainWindow", "Surname", None))
self.label_4.setText(_translate("MainWindow", "Account notes", None))
self.label_5.setText(_translate("MainWindow", "Acount log", None))
self.pushButton_2.setText(_translate("MainWindow", "Delete", None))
self.pushButton.setText(_translate("MainWindow", "Save", None))
self.pushButton_3.setText(_translate("MainWindow", "Cancel", None))
self.menuFile.setTitle(_translate("MainWindow", "File", None))
self.menuOptions.setTitle(_translate("MainWindow", "Options", None))
self.menuAdmin.setTitle(_translate("MainWindow", "Admin", None))
self.actionNew.setText(_translate("MainWindow", "New", None))
self.actionOpen.setText(_translate("MainWindow", "Open", None))
self.actionSave.setText(_translate("MainWindow", "Save", None))
self.actionExit.setText(_translate("MainWindow", "Exit", None))
self.actionDelete.setText(_translate("MainWindow", "Delete", None))
self.actionClose.setText(_translate("MainWindow", "Close", None))
self.actionLocal_opstions.setText(_translate("MainWindow", "Local opstions", None))
self.actionGlobal_options.setText(_translate("MainWindow", "Global options", None))
self.actionBackup.setText(_translate("MainWindow", "Backup", None))
self.actionRestore.setText(_translate("MainWindow", "Restore", None))
self.actionAcoounts.setText(_translate("MainWindow", "Acoounts", None))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
MainWindow = QtGui.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())