Fixing a bug with pie keyboards that PySide exposes
[ejpi] / ejpi / plugins / entry.py
1 from __future__ import division
2
3 import os
4
5 from ejpi import plugin_utils
6
7
8 _NAME = "Entry"
9 _ICON = "newline.png"
10 _MAP = {
11         "name": _NAME,
12         "keys": {
13                 (0, 0): {
14                         "CENTER": {"action": "[push]", "type": "image", "path": "newline.png", },
15                         "NORTH": {"action": "[unpush]", "type": "text", "text": "Undo", },
16                         "NORTH_WEST": {"action": "[clear]", "type": "image", "path": "clear.png", },
17                         "WEST": {"action": "[backspace]", "type": "image", "path": "backspace.png", },
18                         "showAllSlices": False,
19                 },
20         },
21 }
22 _ICON_PATH = [os.path.join(os.path.dirname(__file__), "images")]
23 PLUGIN = plugin_utils.PieKeyboardPluginFactory(_NAME, _ICON, _MAP, _ICON_PATH)