示例#1
0
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
示例#2
0
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
示例#3
0
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
示例#4
0
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()
示例#5
0
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()