RB.SourceSearchBasic¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
description |
||
r/w/co |
Property id |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
description |
r |
||
parent |
r |
||
search_prop |
r |
Class Details¶
- class RB.SourceSearchBasic(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- Parameters:
action_namespace (
str
) – action namespace to use for the action (“app” or “win”)search_action (
Gio.Action
) – the search action to associate the search withprop (
RB.RhythmDBPropType
) – the property to search onname (
str
) – short untranslated name for the searchlabel (
str
) – descriptive translatable label for the search
Adds an item to menu that will select a search based on the specified property. If there isn’t already a registered search instance for the property, one is created.
- classmethod new(prop, description)¶
- Parameters:
prop (
RB.RhythmDBPropType
) – theRB.RhythmDBPropType
to searchdescription (
str
) – description for the search
- Returns:
newly created
RB.SourceSearchBasic
- Return type:
Creates a new
RB.SourceSearchBasic
instance. This performs simple string matching on a specified property.
- classmethod register(prop, name, description)¶
- Parameters:
prop (
RB.RhythmDBPropType
) – the property to search onname (
str
) – short non-translated name for the search instancedescription (
str
) – user-visible description for the search
Ensures that a search instance is registered with the specified name.
Property Details¶
- RB.SourceSearchBasic.props.description¶
- Name:
description
- Type:
- Default Value:
- Flags:
description
- RB.SourceSearchBasic.props.prop¶
- Name:
prop
- Type:
- Default Value:
0
- Flags:
Property id