project = valentina.project.connect('file://tempofficials.vsp')
I want the firstname and last name fields to be together without a vast space between them. Example "Ken Wood" looks good. But some names have so much space between them. Example "Ken Wood". Please how can I control the space between the two name fields with a reasonable or standard space between them. Thanks in advance.
Please when creating. exe for the user how will the filepath be like? Because I used my working directory and it worked. After creating a .exe it doesn't work. Please since I don't know where the user will install the. exe, how should the filepath referenced?
import os
print(os.path.dirname(os.path.realpath(__file__)))
def printpreviewDialog(self):
printer = QPrinter(QPrinter.HighResolution)
previewDialog = QPrintPreviewDialog(printer, self)
previewDialog.paintRequested.connect(self.printReport)
previewDialog.exec_()
# Print result as PDF
#report.printToDisk(filename)
report.printToLocalPrinter("", "paper=A4,fit-to-page=yes");
report.printToLocalPrinter("", "paper=A4,landscape=yes,fit-to-page=yes,copies=2");
report.printToLocalPrinter("", "paper=A3,page-set=odd");
# Cleanup
report.close()
project.close()
report.printToLocalPrinter( "LBP3000", "paper=A4" )