개정판 e81b0514
issue #000: fix xml check
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
931 | 931 |
## Load data on xml |
932 | 932 |
path = os.path.join(appDocData.getCurrentProject().getTempPath(), appDocData.imgName + '.xml') |
933 | 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 |
if os.path.isfile(path): |
|
935 |
for child in parse(path).getroot().getchildren(): |
|
936 |
count = count + len(child.getchildren()) |
|
937 |
if count > 0: |
|
937 | 938 |
try: |
938 | 939 |
self.progress = QProgressDialog(self.tr("Please wait for a while"), self.tr("Cancel"), 0, 100, self) if not hasattr(self, 'progress') else self.progress |
939 | 940 |
self.progress.setWindowModality(Qt.WindowModal) |
내보내기 Unified diff