개정판 5299c116
issue #000: fix open drwaing
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
930 | 930 |
|
931 | 931 |
## Load data on xml |
932 | 932 |
path = os.path.join(appDocData.getCurrentProject().getTempPath(), appDocData.imgName + '.xml') |
933 |
if os.path.isfile(path) and len(parse(path).getroot().getchildren()) > 9: |
|
933 |
count = 0 |
|
934 |
for child in parse(path).getroot().getchildren(): |
|
935 |
count = count + len(child.getchildren()) |
|
936 |
if os.path.isfile(path) and count > 0: |
|
934 | 937 |
try: |
935 | 938 |
self.progress = QProgressDialog(self.tr("Please wait for a while"), self.tr("Cancel"), 0, 100, self) if not hasattr(self, 'progress') else self.progress |
936 | 939 |
self.progress.setWindowModality(Qt.WindowModal) |
... | ... | |
1240 | 1243 |
self.removedItems['NOTE'] = [] |
1241 | 1244 |
|
1242 | 1245 |
appDocData = AppDocData.instance() |
1243 |
self.resultTreeWidget.setCurrentPID(appDocData.activeDrawing.name) |
|
1246 |
#self.resultTreeWidget.setCurrentPID(appDocData.activeDrawing.name)
|
|
1244 | 1247 |
## up to here |
1245 | 1248 |
|
1246 | 1249 |
self.onClearLog() |
내보내기 Unified diff