IBus.Property¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The icon of property |
||
r/w/co |
The key of property |
||
r/w/c |
The label of property |
||
r/w/co |
The type of property |
||
r/w |
The sensitive of property |
||
r/w |
The state of property |
||
r/w |
The sub properties of property |
||
r/w/c |
The symbol of property |
||
r/w |
The tooltip of property |
||
r/w |
The visible of property |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
pdummy |
[ |
r |
Class Details¶
- class IBus.Property(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.Property
is an UI component like a button or a menu item which shows the status of corresponding input method engine property. End user can operate and see the current status of IME through these components. For example, ibus-chewing users change the English/Chinese input mode by pressing ctrl-space or click on the Eng/Chi switch button. And theIBus.Property
shows the change correspondingly.see_also:
IBus.PropList
,IBus.Engine
- classmethod new(key, type, label, icon, tooltip, sensitive, visible, state, prop_list)¶
- Parameters:
key (
str
) – Unique Identity for theIBus.Property
.type (
IBus.PropType
) –IBus.PropType
ofIBus.Property
.label (
IBus.Text
) – Text shown in UI.icon (
str
orNone
) – Icon file for theIBus.Property
.tooltip (
IBus.Text
) – Message shown if mouse hovered theIBus.Property
.sensitive (
bool
) – Whether theIBus.Property
is sensitive to keyboard and mouse event.visible (
bool
) – Whether theIBus.Property
is visible.state (
IBus.PropState
) –IBus.PropState
ofIBus.Property
.prop_list (
IBus.PropList
orNone
) –IBus.PropList
that contains sub IBusProperties.
- Returns:
A newly allocated
IBus.Property
.- Return type:
Creates a new
IBus.Property
.
- get_icon()¶
- Returns:
the icon of
IBus.Property
. Should not be freed.- Return type:
Get the icon of
IBus.Property
.
- get_key()¶
- Returns:
the key of
IBus.Property
. Should not be freed.- Return type:
Get the key of
IBus.Property
.
- get_label()¶
- Returns:
the label of
IBus.Property
. Should not be freed.- Return type:
Get the label of
IBus.Property
.
- get_prop_type()¶
- Return type:
- get_sensitive()¶
- Returns:
the sensitive of
IBus.Property
.- Return type:
Get the sensitive of
IBus.Property
.
- get_state()¶
- Returns:
the state of
IBus.Property
.- Return type:
Get the state of
IBus.Property
.
- get_sub_props()¶
- Returns:
the
IBus.PropList
ofIBus.Property
. Should not be freed.- Return type:
Get the
IBus.PropList
ofIBus.Property
.
- get_symbol()¶
- Returns:
the symbol of
IBus.Property
. Should not be freed.- Return type:
Get the symbol of
IBus.Property
.
- get_tooltip()¶
- Returns:
the tooltip of
IBus.Property
. Should not be freed.- Return type:
Get the tooltip of
IBus.Property
.
- get_visible()¶
- Returns:
the visible of
IBus.Property
.- Return type:
Get the visible of
IBus.Property
.
- set_icon(icon)¶
- Parameters:
icon (
str
) – Icon shown in UI. It could be a full path of an icon file or an icon name.
Set the icon of
IBus.Property
.
- set_label(label)¶
- Parameters:
label (
IBus.Text
) – Text shown in UI.
Set the label of
IBus.Property
.
- set_sensitive(sensitive)¶
- Parameters:
sensitive (
bool
) – Whether theIBus.Property
is sensitive.
Set whether the
IBus.Property
is sensitive.
- set_state(state)¶
- Parameters:
state (
IBus.PropState
) – The state of theIBus.Property
.
Set the state of the
IBus.Property
.
- set_sub_props(prop_list)¶
- Parameters:
prop_list (
IBus.PropList
) –IBus.PropList
that contains sub IBusProperties.
Set the sub IBusProperties.
- set_symbol(symbol)¶
- Parameters:
symbol (
IBus.Text
) – Text shown in UI.
Set the symbol of
IBus.Property
.
- set_tooltip(tooltip)¶
- Parameters:
tooltip (
IBus.Text
) – Text of the tooltip.
Set the tooltip of
IBus.Property
.
- set_visible(visible)¶
- Parameters:
visible (
bool
) – Whether theIBus.Property
is visible.
Set whether the
IBus.Property
is visible.
- update(prop_update)¶
- Parameters:
prop_update (
IBus.Property
) –IBus.PropList
that contains sub IBusProperties.- Returns:
- Return type:
Update the content of an
IBus.Property
.IBus.Property
prop_update can either be sub-property of self, or holds new values for self.
Property Details¶
- IBus.Property.props.icon¶
-
The icon of property
- IBus.Property.props.key¶
- Name:
key
- Type:
- Default Value:
''
- Flags:
The key of property
- IBus.Property.props.label¶
-
The label of property
- IBus.Property.props.prop_type¶
- Name:
prop-type
- Type:
- Default Value:
- Flags:
The type of property
- IBus.Property.props.sensitive¶
-
The sensitive of property
- IBus.Property.props.state¶
- Name:
state
- Type:
- Default Value:
- Flags:
The state of property
- IBus.Property.props.sub_props¶
- Name:
sub-props
- Type:
- Default Value:
- Flags:
The sub properties of property
- IBus.Property.props.symbol¶
-
The symbol of property
- IBus.Property.props.tooltip¶
-
The tooltip of property