Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

how can I access the output of PrintTextBlock #13

@mherweg

Description

@mherweg

Thanks for this nice software!

I have trouble understanding the classes & methods in you program:

PrintTextBlock in base_packets.py returns data. But how can I access that data in my main program?
I added this to PrintTextBlock:

  def consume_fixed(self, data, length):
        global g_beleg
      
        print('--------PrintTextBlock-------------------')
        beleg = ''
        for n in range(12, len(data)-3):
            beleg= beleg+( chr(data[n]))
        print(beleg)
        g_beleg = beleg
        print('--------PrintTextBlock-----EOF-----------')
        return data

and it prints what I want but I'd prefer to do int in my main program similar to printer(lines_of_text)
which works for lines but not for blocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions