-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Atsuo Ishimoto
committed
Dec 30, 2013
1 parent
05469aa
commit 12fcc11
Showing
3 changed files
with
87 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from kaa.keyboard import * | ||
|
||
_class_addoons = {} | ||
|
||
def add_class_addon(classname, key, value): | ||
d = _class_addoons.setdefault(classname, {}) | ||
d.setdefault(key, []).append(value) | ||
|
||
def get_addon(name, key): | ||
d = _class_addoons.get(name, None) | ||
if d: | ||
return d.get(key, ()) | ||
return () | ||
|
||
# keybind(filetype='kaa.filetype.python', editmode='input', { | ||
# }) | ||
|
||
def keybind(filetype=None, editmode='input', keymap=None): | ||
pass | ||
|
||
|
||
# @command(filetype='kaa.filetype.python.pythonmode.PythonMode', | ||
# commandid='abc.def') | ||
# @norec | ||
# def abc_def(wnd): | ||
# pass | ||
|
||
def command(commandid, filetype=None): | ||
pass | ||
|
||
|
||
#styledef(filetype='kaa.filetype.python', theme='basic', [ | ||
# Sytle('default', 'white', 'black'), | ||
#]) | ||
|
||
def styledef(filetype, theme, styles): | ||
pass | ||
|
||
# addfiletype('my.python.filetype', | ||
# overrides='kaa.filetype.python') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters