diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-31 20:27:08 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-31 20:27:08 +0800 |
commit | 7f9640ee1fa7e6a404b63378163964ff0f46c90f (patch) | |
tree | dd87c72fada5cb7ea7288ea6fb183f73f0cc5837 /setup | |
parent | bd0b9b00f32a6e89ae02957d8bd87dc233b4bf6d (diff) | |
download | ibus-libpinyin-7f9640ee1fa7e6a404b63378163964ff0f46c90f.tar.gz ibus-libpinyin-7f9640ee1fa7e6a404b63378163964ff0f46c90f.tar.xz ibus-libpinyin-7f9640ee1fa7e6a404b63378163964ff0f46c90f.zip |
WIP.
Diffstat (limited to 'setup')
-rw-r--r-- | setup/main.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/setup/main.py b/setup/main.py index 6c3361e..f4cf5f2 100644 --- a/setup/main.py +++ b/setup/main.py @@ -111,14 +111,14 @@ class SetupUI (): return False if opt == "read": info[0] = self.__read(name, info[0]) - widget.set_color(GDK_COLOR (info[0])) + widget.set_color(GDK_COLOR(info[0])) return True if opt == "write": info[0] = RGB_COLOR (widget.get_color()) self.__write(name, info[0]) return True if opt == "check": - return info[0] != RGB_COLOR (widget.get_color()) + return info[0] != RGB_COLOR(widget.get_color()) return False def __checkbutton_op(self, name, opt, info): @@ -140,12 +140,10 @@ class SetupUI (): return False def __read(self, name, v): - # return self.__config.read("/engine/PinYin/" + name, v) - return v + return self.__bus.config_get_value("/engine/PinYin/" + name, v) def __write(self, name, v): - #return self.__config.write("/engine/PinYin/" + name, v) - pass + return self.__bus.config_set_value("/engine/PinYin/" + name, v) def __init_ui(self): glade.textdomain("ibus-pinyin") @@ -245,5 +243,5 @@ class SetupUI (): if __name__ == "__main__": - SetupUI(). run() + SetupUI().run() |