def printMonth(om_gui): temp = om_gui.ui.monthView.selectedDate om_gui.ui.monthView.selectedDate = None printimage = QtGui.QPixmap.grabWidget(om_gui.ui.monthView) myclass = chartPrint.printChart(printimage, landscape=True) myclass.sizeToFit() myclass.printpage() om_gui.ui.monthView.selectedDate = temp
def printMonth(om_gui): temp = om_gui.ui.monthView.selectedDate om_gui.ui.monthView.selectedDate = None printimage = om_gui.ui.monthView.grab() myclass = chartPrint.printChart(printimage, landscape=True, parent=om_gui) myclass.sizeToFit() myclass.printpage() om_gui.ui.monthView.selectedDate = temp
def printChart(om_gui): if om_gui.pt.serialno == 0: om_gui.advise("no patient selected", 1) return staticimage = QtGui.QPixmap.grabWidget(om_gui.ui.summaryChartWidget) myclass = chartPrint.printChart(staticimage) myclass.printpage() om_gui.pt.addHiddenNote("printed", "static chart") om_gui.updateHiddenNotesLabel()