def showsettingdailog(self): try: printerdailog = QPageSetupDialog(self.printer) #print(self.Dialog.geometry().width(), self.Dialog.geometry().height()) printerdailog.exec() except Exception as e: print(e)
def showSettingsDialog(self): printDialog =QPageSetupDialog(self.printer, self) printDialog.exec()
def set_printer_dialog(self): set_dialog = QPageSetupDialog(self.printer, self) set_dialog.exec()
def showsettingDialog(self): printdialog = QPageSetupDialog(self.printer, self) printdialog.exec()
def showSettingsDialog(self): # 显示打印设置对话框 printDialog = QPageSetupDialog(self.printer, self) # 创建打印设置对话框对象 printDialog.exec() # 退出