개정판 65cdeb69
툴바 메뉴 클릭 시 다른 메뉴 선택 상태가 해제되도록 Action group 구성
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
63 | 63 |
@date |
64 | 64 |
@history humkyung 2018.04.12 add splitter widget |
65 | 65 |
Jeongwoo 2018.04.27 Add Signal/Slot Connection 'noteNoSingleClicked' |
66 |
Jeongwoo 2018.05.09 Initialize Action group |
|
66 | 67 |
''' |
67 | 68 |
def __init__(self): |
68 | 69 |
super(self.__class__, self).__init__() |
... | ... | |
117 | 118 |
self.symbolExplorerVerticalLayout.addWidget(splitter) |
118 | 119 |
# up to here |
119 | 120 | |
121 |
# Initialize Action group |
|
122 |
actionGroup = QActionGroup(self) |
|
123 |
actionGroup.addAction(self.actionRecognition) |
|
124 |
actionGroup.addAction(self.actionLineRecognition) |
|
125 |
actionGroup.addAction(self.actionEquipment) |
|
126 |
actionGroup.addAction(self.actionNozzle) |
|
127 |
actionGroup.addAction(self.actionLine) |
|
128 |
actionGroup.addAction(self.actionGenerateOutput) |
|
129 |
actionGroup.addAction(self.actionOCR) |
|
130 | ||
120 | 131 |
# connect signals and slots |
121 | 132 |
self.actionClose.triggered.connect(self.close) |
122 | 133 |
self.actionOpen.triggered.connect(self.openImageDrawing) |
내보내기 Unified diff