개정판 63c55b90
build issue #655: window max size, add column before export
DTI_PID/DTI_PID/ItemDataExportDialog.py | ||
---|---|---|
23 | 23 |
""" |
24 | 24 |
def __init__(self, parent): |
25 | 25 |
QDialog.__init__(self, parent) |
26 |
self.setWindowFlag(Qt.WindowMinMaxButtonsHint) |
|
26 | 27 |
|
27 | 28 |
self.columnListAll = [] |
28 | 29 |
self.columnOrder = [] |
DTI_PID/DTI_PID/ItemDataFormatDialog.py | ||
---|---|---|
19 | 19 |
""" |
20 | 20 |
def __init__(self, parent, columnListAll, columnOrder): |
21 | 21 |
QDialog.__init__(self, parent) |
22 |
self.setWindowFlag(Qt.WindowMinMaxButtonsHint) |
|
22 | 23 |
|
23 | 24 |
self.parent = parent |
24 | 25 |
self.ui = ItemDataFormat_UI.Ui_ItemDataFormatDialog() |
... | ... | |
117 | 118 |
''' |
118 | 119 |
def listItemDoubleClicked(self, table, item): |
119 | 120 |
print(table.objectName() + ' : ' + item.text()) |
121 |
for index in range(table.columnCount()): |
|
122 |
if item.text() == table.horizontalHeaderItem(index).text(): |
|
123 |
print('이미 존재') |
|
124 |
return |
|
125 |
table.setColumnCount(table.columnCount() + 1) |
|
126 |
table.setHorizontalHeaderItem(table.columnCount() - 1, QTableWidgetItem(item.text())) |
|
127 |
table.horizontalHeader().moveSection(table.columnCount() - 1, 1) |
|
120 | 128 |
|
121 | 129 |
def lineItemDoubleCliked(self, item): |
122 | 130 |
self.listItemDoubleClicked(self.tableWidgets[0], item) |
DTI_PID/DTI_PID/TrainingEditorDialog.py | ||
---|---|---|
19 | 19 |
def __init__(self, parent, trainingImgPath, trainingBoxPath, boundaryOcrData): |
20 | 20 |
self.spinBoxFlag = False |
21 | 21 |
QDialog.__init__(self, parent) |
22 |
self.setWindowFlag(Qt.WindowMinMaxButtonsHint) |
|
22 | 23 |
|
23 | 24 |
self.trainingImgPath = trainingImgPath |
24 | 25 |
self.trainingBoxPath = trainingBoxPath |
DTI_PID/DTI_PID/TrainingImageListDialog.py | ||
---|---|---|
33 | 33 |
|
34 | 34 |
def __init__(self, parent): |
35 | 35 |
QDialog.__init__(self, parent) |
36 |
self.setWindowFlag(Qt.WindowMinMaxButtonsHint) |
|
36 | 37 |
|
37 | 38 |
self.ui = TrainingImageList_UI.Ui_TraingingImageListDialog() |
38 | 39 |
self.ui.setupUi(self) |
... | ... | |
167 | 168 |
from PIL import Image |
168 | 169 |
import math |
169 | 170 |
try: |
171 |
os.environ['TESSDATA_PREFIX'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'Tesseract-OCR') |
|
170 | 172 |
appDocData = AppDocData.instance() |
171 | 173 |
project = appDocData.getCurrentProject() |
172 | 174 |
self.oCRLang = appDocData.getCurrentProject().getName() |
내보내기 Unified diff