2 from ibus
.common
import \
5 class IPanel (dbus
.service
.Object
):
6 # define method decorator.
7 method
= lambda **args
: \
8 dbus
.service
.method (dbus_interface
= IBUS_PANEL_IFACE
, \
11 # define signal decorator.
12 signal
= lambda **args
: \
13 dbus
.service
.signal (dbus_interface
= IBUS_PANEL_IFACE
, \
16 # define async method decorator.
17 async_method
= lambda **args
: \
18 dbus
.service
.method (dbus_interface
= IBUS_PANE_IFACE
, \
19 async_callbacks
= ("reply_cb", "error_cb"), \
21 @method (in_signature
="iiii")
22 def SetCursorLocation (self
, x
, y
, w
, h
): pass
24 @method (in_signature
="svu")
25 def SetPreeditString (self
, text
, attrs
, cursor_pos
): pass
28 def ShowPreeditString (self
): pass
31 def HidePreeditString (self
): pass
33 @method (in_signature
="sv")
34 def SetAuxString (self
, text
, attrs
): pass
37 def ShowAuxString (self
): pass
40 def HideAuxString (self
): pass
42 @method (in_signature
="v")
43 def UpdateLookupTable (self
, lookup_table
): pass
46 def ShowCandidateWindow (self
): pass
49 def HideCandidateWindow (self
): pass
52 def ShowLanguageBar (self
): pass
55 def HideLanguageBar (self
): pass
58 def Destroy (self
): pass
62 def PageUp (self
): pass
65 def PageDown (self
): pass
68 def CursorUp (self
): pass
71 def CursorDown (self
): pass