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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 if __name__ == "__main__": | 117 if __name__ == "__main__": |
118 import gtk | 118 import gtk |
119 icon = gtk.StatusIcon() | 119 icon = gtk.StatusIcon() |
120 icon.set_visible(True) | 120 icon.set_visible(True) |
121 notify = Notifications(ibus.Bus()) | 121 notify = Notifications(ibus.Bus()) |
122 notify.set_status_icon(icon) | 122 notify.set_status_icon(icon) |
123 while ibus.main_iteration(): pass | 123 while ibus.main_iteration(): pass |
124 notify.notify(0, "", "Hello Summary", "Hello Body", ["NoAgain", "Do not show
me again"], 5000) | 124 notify.notify(0, "", "Hello Summary", "Hello Body", ["NoAgain", "Do not show
me again"], 5000) |
125 ibus.main() | 125 ibus.main() |
LEFT | RIGHT |