개정판 73652518
print test
Change-Id: I84a5f1216c9ad1e21a92e4c881943b8f576b9edd
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1499 | 1499 |
|
1500 | 1500 |
try: |
1501 | 1501 |
#app_doc_data = AppDocData.instance() |
1502 |
#project = app_doc_data.getCurrentProject() |
|
1502 | 1503 |
|
1503 | 1504 |
printer = QPrinter(QPrinter.PrinterResolution) |
1504 | 1505 |
#printer.setPageSize(QPrinter.A0) |
1505 | 1506 |
printer.setOrientation(QPrinter.Orientation.Landscape) |
1506 |
#printer.setOutputFileName(app_doc_data.activeDrawing.name) |
|
1507 |
#printer.setOutputFileName(os.path.join(project.getPDFFilePath(), os.path.splitext(app_doc_data.activeDrawing.name)[0])) |
|
1508 |
#printer.setOutputFormat(QPrinter.PdfFormat) |
|
1507 | 1509 |
dialog = QPrintDialog(printer) |
1508 | 1510 |
if (dialog.exec() == QDialog.Accepted): |
1509 | 1511 |
painter = QPainter(printer) |
DTI_PID/DTI_PID/Project.py | ||
---|---|---|
75 | 75 |
:return: graphic file path |
76 | 76 |
""" |
77 | 77 |
return os.path.join(self.getPath(), 'graphic') |
78 |
|
|
79 |
#def getPDFFilePath(self) -> str: |
|
80 |
# """ |
|
81 |
# :return: pdf file path |
|
82 |
# """ |
|
83 |
# return os.path.join(self.getPath(), 'PDF') |
|
78 | 84 |
|
79 | 85 |
def getOutputPath(self) -> str: |
80 | 86 |
""" |
... | ... | |
181 | 187 |
graphicPath = self.getGraphicFilePath() |
182 | 188 |
if not os.path.exists(graphicPath): |
183 | 189 |
os.makedirs(graphicPath) |
190 |
#pdfPath = self.getPDFFilePath() |
|
191 |
#if not os.path.exists(pdfPath): |
|
192 |
# os.makedirs(pdfPath) |
|
184 | 193 |
|
185 | 194 |
path = os.path.join(tempDir, 'Tile') |
186 | 195 |
if not os.path.exists(path): |
내보내기 Unified diff