diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-01-02 16:42:09 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-01-03 10:46:42 +0200 |
commit | f1a098203be8c44a52ed5d2a72982a3f634d4df6 (patch) | |
tree | c916f481fb22a3002d56541346b15532fe46da83 /py/tests/gamma.py | |
parent | b11baff09f78a4a383f817ec35208ae8966ab832 (diff) |
py: Move helpers to the pykms module
Instead of forcing applications to import the helpers manually, move
them to pykms by turning it into a python module.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'py/tests/gamma.py')
-rwxr-xr-x | py/tests/gamma.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/py/tests/gamma.py b/py/tests/gamma.py index a6b68cc..5969b82 100755 --- a/py/tests/gamma.py +++ b/py/tests/gamma.py @@ -1,7 +1,6 @@ #!/usr/bin/python3 import pykms -from helpers import * # This hack makes drm initialize the fbcon, setting up the default connector card = pykms.Card() @@ -32,10 +31,10 @@ for i in range(len): gamma = pykms.Blob(card, arr); -set_prop(crtc, "GAMMA_LUT", gamma.id) +crtc.set_prop("GAMMA_LUT", gamma.id) input("press enter to remove gamma\n") -set_prop(crtc, "GAMMA_LUT", 0) +crtc.set_prop("GAMMA_LUT", 0) input("press enter to exit\n") |