예제 #1
0
파일: MIAS_main.py 프로젝트: mkozturk/mias
class DetailReportWindow(Main):
	def __init__(self):
		QtGui.QMainWindow.__init__(self)
		self.ui = Ui_DetailReportWindow()
		self.ui.setupUi(self)
		self.ui.actionPrint.triggered.connect(self.sendtoprinter)	
	def sendtoprinter(self):
		dialog = QtGui.QPrintDialog()
		if dialog.exec_() == QtGui.QDialog.Accepted:
			self.ui.textEdit.document().print_(dialog.printer())
예제 #2
0
class DetailReportWindow(Main):
    def __init__(self):
        QtGui.QMainWindow.__init__(self)
        self.ui = Ui_DetailReportWindow()
        self.ui.setupUi(self)
        self.ui.actionPrint.triggered.connect(self.sendtoprinter)

    def sendtoprinter(self):
        dialog = QtGui.QPrintDialog()
        if dialog.exec_() == QtGui.QDialog.Accepted:
            self.ui.textEdit.document().print_(dialog.printer())
예제 #3
0
파일: MIAS_main.py 프로젝트: mkozturk/mias
	def __init__(self):
		QtGui.QMainWindow.__init__(self)
		self.ui = Ui_DetailReportWindow()
		self.ui.setupUi(self)
		self.ui.actionPrint.triggered.connect(self.sendtoprinter)	
예제 #4
0
 def __init__(self):
     QtGui.QMainWindow.__init__(self)
     self.ui = Ui_DetailReportWindow()
     self.ui.setupUi(self)
     self.ui.actionPrint.triggered.connect(self.sendtoprinter)