Ejemplo n.º 1
0
def _get_window_id_path():
    cache_dir = latex_dvi_png.find_cache_dir()
    window_id_path = os.path.join(cache_dir, 'GIMP_window_id.txt')
    return window_id_path
    sizer_rows = 3
    
import rwkos
#reload(rwkos)

#from PIL import Image

import latex_dvi_png

keyMap = {}

import os, copy

import rwkos

cache_dir = latex_dvi_png.find_cache_dir()

from xdotool import send_xdotool_cmd, get_window_ids, \
     windows_with_str_in_title, GIMP_windows, \
     Untitled_windows, get_Untitled_GIMP, activate_window, \
     latex_eqn_preview_id, set_window_focus, read_window_id
    
def gen_keymap():
    keys = ("BACK", "TAB", "RETURN", "ESCAPE", "SPACE", "DELETE", "START",
        "LBUTTON", "RBUTTON", "CANCEL", "MBUTTON", "CLEAR", "PAUSE",
        "CAPITAL", "PRIOR", "NEXT", "END", "HOME", "LEFT", "UP", "RIGHT",
        "DOWN", "SELECT", "PRINT", "EXECUTE", "SNAPSHOT", "INSERT", "HELP",
        "NUMPAD0", "NUMPAD1", "NUMPAD2", "NUMPAD3", "NUMPAD4", "NUMPAD5",
        "NUMPAD6", "NUMPAD7", "NUMPAD8", "NUMPAD9", "MULTIPLY", "ADD",
        "SEPARATOR", "SUBTRACT", "DECIMAL", "DIVIDE", "F1", "F2", "F3", "F4",
        "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14",