개정판 01d44eb0
issue #000: fix unit setting
Change-Id: I13091c2b6eb58ee3f990894bcdb9c66e3f175a32
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
99 | 99 |
self.ui.maxTextSizeSpinBox.setValue(60) |
100 | 100 |
|
101 | 101 |
configs = docData.getConfigs('Project', 'Unit') |
102 |
sizeUnit = configs[0].value if 1 == len(configs) else None |
|
103 |
self.ui.radioButtonSizeUnitImaperial.setChecked(True if sizeUnit == 'Imperial' else False) |
|
104 |
self.ui.radioButtonSizeUnitMetric.setChecked(True if sizeUnit == 'Metric' else False) |
|
102 |
if configs: |
|
103 |
sizeUnit = configs[0].value if 1 == len(configs) else None |
|
104 |
self.ui.radioButtonSizeUnitImaperial.setChecked(True if sizeUnit == 'Imperial' else False) |
|
105 |
self.ui.radioButtonSizeUnitMetric.setChecked(True if sizeUnit == 'Metric' else False) |
|
106 |
else: |
|
107 |
self.ui.radioButtonSizeUnitImaperial.setChecked(True) |
|
108 |
self.ui.radioButtonSizeUnitMetric.setChecked(False) |
|
105 | 109 |
|
106 | 110 |
configs = docData.getConfigs('Size', 'Delimiter') |
107 | 111 |
self.ui.lineEditSizeDelimiter.setText(configs[0].value if 1 == len(configs) else 'X') |
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
1059 | 1059 |
for text_area_index in reversed(range(len(text_area_symbols))): |
1060 | 1060 |
if text_area_symbols[text_area_index].contains(textAreas[textArea_index].center) or \ |
1061 | 1061 |
textAreas[textArea_index].contains(text_area_symbols[text_area_index].center): |
1062 |
if text_area_symbols[text_area_index].area > textAreas[textArea_index].area: |
|
1062 |
if True: ## select text area from symbol |
|
1063 |
#if text_area_symbols[text_area_index].area > textAreas[textArea_index].area: ## select bigger one |
|
1063 | 1064 |
textAreas.pop(textArea_index) |
1064 | 1065 |
is_pop = True |
1065 | 1066 |
break |
내보내기 Unified diff