def get_printsys(self): if wal.IS_MSW: from sk1.printing.msw_print import MSW_PS return MSW_PS(self.app, physical_only=True) else: from sk1.printing.cups_print import CUPS_PS return CUPS_PS(physical_only=True)
def get_printsys(app): if wal.IS_MSW: from sk1.printing.msw_print import MSW_PS return MSW_PS(app) from sk1.printing.cups_print import CUPS_PS return CUPS_PS()