def on_bImpNom_clicked(self, button, data=None): # self.grabarfichero1.show() self.canvas = canvas.Canvas("nomina.pdf", pagesize=A4) impr_nomina(self.canvas, self.laempresa, self.mes, self.anio, self.fornom, self.lanomina) # width, height = A4 self.canvas.save() # self.anio.set_text("") # self.dialImprimir = dialImprimir() print os.name os.system("/usr/bin/evince nomina.pdf")
def on_bImprimir_clicked(self, button, data=None): # self.grabarfichero1.show() self.canvas = canvas.Canvas("nomina.pdf", pagesize=A4) impr_nomina(self.canvas, valor_combobox(self.cbnum), valor_combobox(self.cbmes), int(self.anio.get_text()), valor_combobox(self.formnom), 0) # width, height = A4 self.canvas.save() # self.anio.set_text("") # self.dialImprimir = dialImprimir() print os.name os.system("/usr/bin/evince nomina.pdf")