Gimp.Choice¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class Gimp.Choice(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a
Gimp.Choice
.- Return type:
New in version 3.0.
- add(nick, id, label, help)¶
- Parameters:
This procedure adds a new possible value to self list of values. The id is an optional integer identifier. This can be useful for instance when you want to work with different enum values mapped to each nick.
New in version 3.0.
- get_documentation(nick, label, help)¶
- Parameters:
- Returns:
- Return type:
Returns the documentation strings for nick.
New in version 3.0.
- get_help(nick)¶
-
Returns the longer documentation for nick.
New in version 3.0.
- get_id(nick)¶
-
New in version 3.0.
- get_label(nick)¶
-
New in version 3.0.
- is_valid(nick)¶
-
This procedure checks if the given nick is valid and refers to an existing choice.
New in version 3.0.
- list_nicks()¶
- Returns:
The list of self's nicks.
- Return type:
[
str
]
This procedure returns the list of nicks allowed for self.
New in version 3.0.
- set_sensitive(nick, sensitive)¶
-
Change the sensitivity of a possible nick. Technically a non-sensitive nick means it cannot be chosen anymore (so [method`Gimp`.Choice.is_valid] will return
False
; nevertheless [method`Gimp`.Choice.list_nicks] and other functions to get information about a choice will still function).New in version 3.0.
Signal Details¶
- Gimp.Choice.signals.sensitivity_changed(choice, object)¶
- Signal Name:
sensitivity-changed
- Flags:
- Parameters:
choice (
Gimp.Choice
) – The object which received the signalobject (
str
) –