-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtrim_extent.py
125 lines (117 loc) · 5.09 KB
/
trim_extent.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
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(400, 273)
self.gridLayout = QtWidgets.QGridLayout(Dialog)
self.gridLayout.setObjectName("gridLayout")
self.spinBox_6 = QtWidgets.QSpinBox(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
self.spinBox_6.setFont(font)
self.spinBox_6.setMaximum(10000000)
self.spinBox_6.setObjectName("spinBox_6")
self.gridLayout.addWidget(self.spinBox_6, 2, 1, 1, 1)
self.label_4 = QtWidgets.QLabel(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 4, 1, 1, 1, QtCore.Qt.AlignHCenter)
self.label_5 = QtWidgets.QLabel(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.gridLayout.addWidget(self.label_5, 1, 0, 1, 1, QtCore.Qt.AlignHCenter)
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.buttonBox.setFont(font)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.gridLayout.addWidget(self.buttonBox, 6, 0, 1, 2)
self.label_6 = QtWidgets.QLabel(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
self.label_6.setFont(font)
self.label_6.setObjectName("label_6")
self.gridLayout.addWidget(self.label_6, 1, 1, 1, 1, QtCore.Qt.AlignHCenter)
self.spinBox_5 = QtWidgets.QSpinBox(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
self.spinBox_5.setFont(font)
self.spinBox_5.setMaximum(10000000)
self.spinBox_5.setObjectName("spinBox_5")
self.gridLayout.addWidget(self.spinBox_5, 2, 0, 1, 1)
self.label_3 = QtWidgets.QLabel(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1, QtCore.Qt.AlignHCenter)
self.spinBox_4 = QtWidgets.QSpinBox(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
self.spinBox_4.setFont(font)
self.spinBox_4.setMaximum(10000000)
self.spinBox_4.setObjectName("spinBox_4")
self.gridLayout.addWidget(self.spinBox_4, 5, 0, 1, 1)
self.spinBox_3 = QtWidgets.QSpinBox(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
self.spinBox_3.setFont(font)
self.spinBox_3.setMaximum(1000000)
self.spinBox_3.setObjectName("spinBox_3")
self.gridLayout.addWidget(self.spinBox_3, 5, 1, 1, 1)
self.label_2 = QtWidgets.QLabel(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 3, 0, 1, 2, QtCore.Qt.AlignHCenter)
self.label = QtWidgets.QLabel(Dialog)
font = QtGui.QFont()
font.setFamily("Century Gothic")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 0, 0, 1, 2, QtCore.Qt.AlignHCenter)
self.retranslateUi(Dialog)
self.buttonBox.accepted.connect(Dialog.accept)
self.buttonBox.rejected.connect(Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.label_4.setText(_translate("Dialog", "To"))
self.label_5.setText(_translate("Dialog", "From"))
self.label_6.setText(_translate("Dialog", "To"))
self.label_3.setText(_translate("Dialog", "From"))
self.label_2.setText(_translate("Dialog", "Y Extent"))
self.label.setText(_translate("Dialog", "X Extent"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Dialog = QtWidgets.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.show()
sys.exit(app.exec_())