a little helper class for client message event handlers. You just connect an atom to a handler function and pass every ooxcb.xproto.ClientMessageEvent to handle(), and you will get the events handled.
| Parameters: |
|
|---|
a dict proxy creates a proxy to a dict the prefix argument is prefixed to all key operations so that
>>> d = {'a.b':1}
>>> pd = DictProxy(d, 'a.')
>>> pd['b'] == d['a.b']
True
all other dict operations should also work
Return (modifiers, button id), extracted from the string s.
It has to contain several modifiers and a button index, joined together with a ‘+’:
CTRL+1
MOD4+2
1 is the left mouse button, 2 the middle, 3 the right button.
grab the keyboard, wait until the user presses an arbitrary key and call callback. callback is required to have this function signature:
def callback(keycode)