Update from skeleton
[ejpi] / src / plugins / alphabet.py
1 """
2 Keyboard Origin:
3
4 qwe rtyu iop
5 as dfghj kl
6 zxc vb nm
7
8 e t i
9 a h l
10 c b n
11 """
12
13 from __future__ import division
14
15 import os
16
17 import sys
18 sys.path.append("../")
19 import plugin_utils
20
21
22 _NAME = "Alphabet"
23 _ICON = "alphabet.png"
24 _MAP = {
25         "name": _NAME,
26         "keys": {
27                 (0, 0): {
28                         "CENTER": {"action": "e", "type": "text", "text": "E", },
29                         "SOUTH": {"action": "q", "type": "text", "text": "Q", },
30                         "EAST": {"action": "w", "type": "text", "text": "W", },
31                         "showAllSlices": True,
32                 },
33                 (0, 1): {
34                         "CENTER": {"action": "t", "type": "text", "text": "T", },
35                         "WEST": {"action": "r", "type": "text", "text": "R", },
36                         "EAST": {"action": "y", "type": "text", "text": "Y", },
37                         "SOUTH": {"action": "u", "type": "text", "text": "U", },
38                         "showAllSlices": True,
39                 },
40                 (0, 2): {
41                         "CENTER": {"action": "i", "type": "text", "text": "I", },
42                         "WEST": {"action": "o", "type": "text", "text": "O", },
43                         "SOUTH": {"action": "p", "type": "text", "text": "P", },
44                         "showAllSlices": True,
45                 },
46                 (1, 0): {
47                         "CENTER": {"action": "a", "type": "text", "text": "A", },
48                         "EAST": {"action": "s", "type": "text", "text": "S", },
49                         "showAllSlices": True,
50                 },
51                 (1, 1): {
52                         "CENTER": {"action": "h", "type": "text", "text": "H", },
53                         "WEST": {"action": "d", "type": "text", "text": "D", },
54                         "NORTH": {"action": "f", "type": "text", "text": "F", },
55                         "EAST": {"action": "g", "type": "text", "text": "G", },
56                         "SOUTH": {"action": "j", "type": "text", "text": "J", },
57                         "showAllSlices": True,
58                 },
59                 (1, 2): {
60                         "CENTER": {"action": "l", "type": "text", "text": "L", },
61                         "WEST": {"action": "k", "type": "text", "text": "K", },
62                         "showAllSlices": True,
63                 },
64                 (2, 0): {
65                         "CENTER": {"action": "c", "type": "text", "text": "C", },
66                         "NORTH": {"action": "z", "type": "text", "text": "Z", },
67                         "EAST": {"action": "x", "type": "text", "text": "X", },
68                         "showAllSlices": True,
69                 },
70                 (2, 1): {
71                         "CENTER": {"action": "b", "type": "text", "text": "B", },
72                         "NORTH": {"action": "v", "type": "text", "text": "V", },
73                         "showAllSlices": True,
74                 },
75                 (2, 2): {
76                         "CENTER": {"action": "n", "type": "text", "text": "N", },
77                         "NORTH_WEST": {"action": "m", "type": "text", "text": "M", },
78                         "showAllSlices": True,
79                 },
80         },
81 }
82 _ICON_PATH = [os.path.join(os.path.dirname(__file__), "images")]
83 PLUGIN = plugin_utils.PieKeyboardPluginFactory(_NAME, _ICON, _MAP, _ICON_PATH)