From 2c21d0c0f3b56ac7a831c71ff5958d74fad04576 Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Tue, 24 Jun 2008 10:33:03 +0800 Subject: [PATCH] Add test property. --- engine/anthy/engine.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/engine/anthy/engine.py b/engine/anthy/engine.py index 4a71b44..4def2f4 100644 --- a/engine/anthy/engine.py +++ b/engine/anthy/engine.py @@ -47,8 +47,9 @@ class Engine (interface.IEngine): def _init_props (self): props = ibus.PropList () + + # init input mode properties mode_prop = ibus.Property (name = "InputMode", type = ibus.PROP_TYPE_MENU, label = u"あ") - props.append (mode_prop) mode_props = ibus.PropList () mode_props.append (ibus.Property (name = "InputModeHiragana", type = ibus.PROP_TYPE_RADIO, @@ -66,6 +67,13 @@ class Engine (interface.IEngine): type = ibus.PROP_TYPE_RADIO, label = u"Direct input")) mode_prop.set_sub_props (mode_props) + props.append (mode_prop) + + + # init test property + test_prop = ibus.Property (name = "InputMode", type = ibus.PROP_TYPE_TOGGLE, label = u"あ") + props.append (test_prop) + return props # reset values of engine -- 2.7.4