개정판 87a92ef6
Merge to master
DTI_PID/DTI_PID/Commands/CropCommand.py | ||
---|---|---|
38 | 38 |
self.imageViewer.leftMouseButtonReleased.emit(scenePos.x(), scenePos.y()) |
39 | 39 |
#QGraphicsView.mouseReleaseEvent(self.imageViewer, event) |
40 | 40 |
pass |
41 |
self.isTreated = False |
|
41 | 42 |
|
42 | 43 |
def undo(self): |
43 | 44 |
pass |
DTI_PID/DTI_PID/Commands/EraserCommand.py | ||
---|---|---|
37 | 37 |
#self.imageViewer.super(QtImageViewer, self).mouseMoveEvent(event) |
38 | 38 |
elif 'mouseRightMoveEvent' == param[0]: |
39 | 39 |
pass |
40 |
self.isTreated = False |
|
40 | 41 |
|
41 | 42 |
def undo(self): |
42 | 43 |
pass |
DTI_PID/DTI_PID/Commands/HandCommand.py | ||
---|---|---|
35 | 35 |
self.imageViewer.leftMouseButtonReleased.emit(scenePos.x(), scenePos.y()) |
36 | 36 |
#QGraphicsView.mouseReleaseEvent(self.imageViewer, event) |
37 | 37 |
pass |
38 |
self.isTreated = False |
|
38 | 39 |
|
39 | 40 |
def undo(self): |
40 | 41 |
pass |
DTI_PID/DTI_PID/Commands/PenCommand.py | ||
---|---|---|
37 | 37 |
#self.imageViewer.super(QtImageViewer, self).mouseMoveEvent(event) |
38 | 38 |
elif 'mouseRightMoveEvent' == param[0]: |
39 | 39 |
pass |
40 |
self.isTreated = False |
|
40 | 41 |
|
41 | 42 |
def undo(self): |
42 | 43 |
pass |
DTI_PID/DTI_PID/Commands/ZoomCommand.py | ||
---|---|---|
34 | 34 |
finally: |
35 | 35 |
QGraphicsView.mouseReleaseEvent(self.imageViewer, event) |
36 | 36 |
pass |
37 |
self.isTreated = False |
|
37 | 38 |
|
38 | 39 |
def undo(self): |
39 | 40 |
pass |
DTI_PID/DTI_PID/DTI_PID.pyproj | ||
---|---|---|
4 | 4 |
<SchemaVersion>2.0</SchemaVersion> |
5 | 5 |
<ProjectGuid>7c2e55a3-2b16-4b4f-867f-f16e2ef6f2f0</ProjectGuid> |
6 | 6 |
<ProjectHome>.</ProjectHome> |
7 |
<StartupFile>SymbolGenerator.py</StartupFile>
|
|
7 |
<StartupFile>DTI_PID.py</StartupFile>
|
|
8 | 8 |
<SearchPath> |
9 | 9 |
</SearchPath> |
10 | 10 |
<WorkingDirectory>.</WorkingDirectory> |
DTI_PID/DTI_PID/Recognition_UI.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
|
|
3 |
# Form implementation generated from reading ui file 'UI/dlgRecognition.ui' |
|
4 |
# |
|
5 |
# Created by: PyQt5 UI code generator 5.6 |
|
6 |
# |
|
7 |
# WARNING! All changes made in this file will be lost! |
|
8 |
|
|
9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
|
10 |
|
|
11 |
class Ui_Recognition(object): |
|
12 |
def setupUi(self, Recognition): |
|
13 |
Recognition.setObjectName("Recognition") |
|
14 |
Recognition.setWindowModality(QtCore.Qt.WindowModal) |
|
15 |
Recognition.resize(845, 300) |
|
16 |
font = QtGui.QFont() |
|
17 |
font.setFamily("맑은 고딕") |
|
18 |
Recognition.setFont(font) |
|
19 |
self.gridLayout = QtWidgets.QGridLayout(Recognition) |
|
20 |
self.gridLayout.setObjectName("gridLayout") |
|
21 |
self.buttonBox = QtWidgets.QDialogButtonBox(Recognition) |
|
22 |
self.buttonBox.setEnabled(False) |
|
23 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
|
24 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
|
25 |
self.buttonBox.setObjectName("buttonBox") |
|
26 |
self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1) |
|
27 |
self.listWidget = QtWidgets.QListWidget(Recognition) |
|
28 |
self.listWidget.setObjectName("listWidget") |
|
29 |
self.gridLayout.addWidget(self.listWidget, 0, 0, 1, 1) |
|
30 |
|
|
31 |
self.retranslateUi(Recognition) |
|
32 |
self.buttonBox.accepted.connect(Recognition.accept) |
|
33 |
self.buttonBox.rejected.connect(Recognition.reject) |
|
34 |
QtCore.QMetaObject.connectSlotsByName(Recognition) |
|
35 |
|
|
36 |
def retranslateUi(self, Recognition): |
|
37 |
_translate = QtCore.QCoreApplication.translate |
|
38 |
Recognition.setWindowTitle(_translate("Recognition", "설계정보 인식 중...")) |
|
39 |
|
|
40 |
|
|
41 |
if __name__ == "__main__": |
|
42 |
import sys |
|
43 |
app = QtWidgets.QApplication(sys.argv) |
|
44 |
Recognition = QtWidgets.QDialog() |
|
45 |
ui = Ui_Recognition() |
|
46 |
ui.setupUi(Recognition) |
|
47 |
Recognition.show() |
|
48 |
sys.exit(app.exec_()) |
|
49 |
|
내보내기 Unified diff