dmroeder / pylogix

Read/Write data from Allen Bradley Compact/Control Logix PLC's
Apache License 2.0
599 stars 182 forks source link

Optional updates to 81_simple_gui.py file #162

Closed GitHubDragonFly closed 3 years ago

GitHubDragonFly commented 3 years ago

Short description of change

Allow displaying values in multi-line (wrapped) when necessary and other misc updates

Types of changes

What is the change?

What does it fix/add?

Some new features

Test Configuration

TheFern2 commented 3 years ago

Hey @GitHubDragonFly great additions, this is coming along. On the boolean display toggle, I am not seeing any changes, it always shows as true/false.

GitHubDragonFly commented 3 years ago

You are correct. I had it setup for bool arrays only. It is fixed now.

GitHubDragonFly commented 3 years ago

There is one more thing that can be updated, Serial Number of the discovered devices. It currently shows as hex string and you can possibly update it yourself to look like this:

lbDevices.insert(i * 12 + 9, 'Serial: ' + str(int(device.SerialNumber, 0)))

You would save me a trouble of submitting yet another PR.

GitHubDragonFly commented 3 years ago

If you do fix showing the Serial Number in the library itself, then it will be available everywhere.

TheFern2 commented 3 years ago

If you do fix showing the Serial Number in the library itself, then it will be available everywhere.

Done fixed on master, good catch!