LEFT | RIGHT |
(Both sides are equal) |
1 # vim:set et sts=4 sw=4: | 1 # vim:set et sts=4 sw=4: |
2 # | 2 # |
3 # ibus - The Input Bus | 3 # ibus - The Input Bus |
4 # | 4 # |
5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> | 5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> |
6 # Copyright (c) 2007-2010 Red Hat, Inc. | 6 # Copyright (c) 2007-2010 Red Hat, Inc. |
7 # | 7 # |
8 # This library is free software; you can redistribute it and/or | 8 # This library is free software; you can redistribute it and/or |
9 # modify it under the terms of the GNU Lesser General Public | 9 # modify it under the terms of the GNU Lesser General Public |
10 # License as published by the Free Software Foundation; either | 10 # License as published by the Free Software Foundation; either |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 def get_active_engine(self): | 153 def get_active_engine(self): |
154 return self.get_property("active-engine") | 154 return self.get_property("active-engine") |
155 | 155 |
156 if __name__ == "__main__": | 156 if __name__ == "__main__": |
157 combo = EngineComboBox() | 157 combo = EngineComboBox() |
158 combo.set_engines([IBus.EngineDesc(language="zh")]) | 158 combo.set_engines([IBus.EngineDesc(language="zh")]) |
159 w = Gtk.Window() | 159 w = Gtk.Window() |
160 w.add(combo) | 160 w.add(combo) |
161 w.show_all() | 161 w.show_all() |
162 Gtk.main() | 162 Gtk.main() |
LEFT | RIGHT |