module timelinelib.wxgui.keyboard

A representation of the keyboard and it’s control key states.

class timelinelib.wxgui.keyboard.Keyboard[source]

Bases: object

CTRL = 4
SHIFT = 2
ALT = 1
NONE = 0
__init__(ctrl=False, shift=False, alt=False)[source]

Initialize self. See help(type(self)) for accurate signature.

property ctrl
property shift
property alt
property keys_combination

This function returns a unique integer value for each combination of control keys. It may seem a little odd to use the if statements but that has been proven to be the most efficient way of converting a boolean to an int.