Description
First what I want to do:
I want to be able to set every single key color with python, to be able to make a script instead of using the daemon. (I will autostart the script in background and it will completly control the keybord, for example with time or cpu load.)
The Problem is that I can't get the Keycodes:
I can change the color of every key of a key group but no single.
When I try to do dev.leds['keys'].get_all() I get
>>> dev.leds['keys'].get_all() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "keyleds.pyx", line 401, in keyleds.KeyBlock.get_all AttributeError: 'dict' object has no attribute 'keycode'
And when I try to guess a code it again says there is no attribute keycode:
>>> dev.leds['keys'].set_keys([pykeyleds.KeyColor(keycode=1, key_id=4, color=pykeyleds.Color(255,0,0))]) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "keyleds.pyx", line 421, in keyleds.KeyBlock.set_keys AttributeError: 'dict' object has no attribute 'keycode'
I would be really happy, if this could be fixed or somebody could help me, if I did something wrong.