개정판 4a566679
issue #000: fix symbol rotate btn
Change-Id: I1e6907d4a1fc990124befb32ea1af183883aef89
DTI_PID/DTI_PID/App.py | ||
---|---|---|
121 | 121 |
from ExceptionHandler import QExceptionHandler |
122 | 122 |
|
123 | 123 |
app = App(sys.argv) |
124 |
|
|
124 |
|
|
125 | 125 |
""" log for unhandled exception """ |
126 | 126 |
app.exception_handler = QExceptionHandler() |
127 | 127 |
app._excepthook = sys.excepthook |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
928 | 928 |
def onRotate(self, action): |
929 | 929 |
selected = [item for item in self.graphicsView.scene().selectedItems() if issubclass(type(item), SymbolSvgItem)] |
930 | 930 |
if len(selected) == 1: |
931 |
selected[0].rotateSymbol() |
|
931 |
from RotateCommand import RotateCommand |
|
932 |
self.graphicsView.scene()._undo_stack.push(RotateCommand(self.graphicsView.scene(), selected)) |
|
932 | 933 |
|
933 | 934 |
''' |
934 | 935 |
@brief Area Zoom |
minorTools/xmlTextSearcher.py | ||
---|---|---|
3 | 3 |
def finder(): |
4 | 4 |
print("finder start") |
5 | 5 |
|
6 |
targetText = ['DESUPERHEATER<']
|
|
6 |
targetText = ['restriction orif union<']
|
|
7 | 7 |
path = 'W:\ID2_Project\POSCO\Temp' |
8 | 8 |
|
9 | 9 |
print("target : " + str(len(targetText))) |
내보내기 Unified diff