-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuntitled.py
95 lines (85 loc) · 4.49 KB
/
untitled.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# 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(437, 316)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setMargin(10)
self.gridLayout.setSpacing(5)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.scrollArea = QtGui.QScrollArea(self.centralwidget)
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
self.scrollAreaWidgetContents = QtGui.QWidget()
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 415, 253))
self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents"))
self.gridLayout_2 = QtGui.QGridLayout(self.scrollAreaWidgetContents)
self.gridLayout_2.setMargin(5)
self.gridLayout_2.setSpacing(10)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.pushButton = QtGui.QPushButton(self.scrollAreaWidgetContents)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.gridLayout_2.addWidget(self.pushButton, 0, 0, 1, 1)
self.pushButton_4 = QtGui.QPushButton(self.scrollAreaWidgetContents)
self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
self.gridLayout_2.addWidget(self.pushButton_4, 0, 1, 1, 1)
self.pushButton_2 = QtGui.QPushButton(self.scrollAreaWidgetContents)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.gridLayout_2.addWidget(self.pushButton_2, 1, 0, 1, 1)
self.pushButton_5 = QtGui.QPushButton(self.scrollAreaWidgetContents)
self.pushButton_5.setObjectName(_fromUtf8("pushButton_5"))
self.gridLayout_2.addWidget(self.pushButton_5, 1, 1, 1, 1)
self.pushButton_6 = QtGui.QPushButton(self.scrollAreaWidgetContents)
self.pushButton_6.setObjectName(_fromUtf8("pushButton_6"))
self.gridLayout_2.addWidget(self.pushButton_6, 2, 0, 1, 1)
self.pushButton_3 = QtGui.QPushButton(self.scrollAreaWidgetContents)
self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
self.gridLayout_2.addWidget(self.pushButton_3, 3, 0, 1, 1)
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.gridLayout.addWidget(self.scrollArea, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 437, 21))
self.menubar.setObjectName(_fromUtf8("menubar"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
self.pushButton.setText(_translate("MainWindow", "PushButton", None))
self.pushButton_4.setText(_translate("MainWindow", "PushButton", None))
self.pushButton_2.setText(_translate("MainWindow", "PushButton", None))
self.pushButton_5.setText(_translate("MainWindow", "PushButton", None))
self.pushButton_6.setText(_translate("MainWindow", "PushButton", None))
self.pushButton_3.setText(_translate("MainWindow", "PushButton", 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_())