Пример #1
0
def buildRP(a, f, c, d, e):
    return to_bytes_utf8('').join([
        b'\x00' * 600, RESET, UEL, PJL_ENTER_LANG,
        buildPCLCmd(
            '&', 'b', 'W',
            pml.buildEmbeddedPMLSetPacket('1.1.1.36', a + f + c + d + e,
                                          pml.TYPE_STRING)), RESET, UEL
    ])
Пример #2
0
def buildRP(a, f, c, d, e):
    return to_bytes_utf8('').join([b'\x00'*600, RESET, UEL, PJL_ENTER_LANG, buildPCLCmd('&', 'b', 'W', pml.buildEmbeddedPMLSetPacket('1.1.1.36', a + f + c + d + e, pml.TYPE_STRING)), RESET, UEL])
Пример #3
0
def buildRP(a, b, c, d, e):
    return ''.join(['\x00'*600, RESET, UEL, PJL_ENTER_LANG, buildPCLCmd('&', 'b', 'W', pml.buildEmbeddedPMLSetPacket('1.1.1.36', a + b + c + d + e, pml.TYPE_STRING)), RESET, UEL])