RB.SearchEntry¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
 Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
  | 
|
  | 
|
Properties¶
- Inherited:
 Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
whether in explicit search mode or not  | 
||
r/w/co  | 
whether to display the search menu icon  | 
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Emitted when the entry is activated.  | 
|
Emitted when the search text changes.  | 
|
Emitted when a popup menu should be shown  | 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class RB.SearchEntry(*args, **kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
The search entry contains a label and a text entry box. The text entry box contains an icon that acts as a ‘clear’ button.
Signals are emitted when the search text changes, arbitrarily rate-limited to one every 300ms.
- classmethod new(has_popup)¶
 - Parameters:
 has_popup (
bool) –- Returns:
 new search entry widget.
- Return type:
 
Creates a new search entry widget.
- clear()¶
 Clears the search entry text. The ‘search’ signal will be emitted.
- grab_focus()¶
 Grabs input focus for the text entry widget.
- set_mnemonic(enable)¶
 - 
Adds or removes a mnemonic allowing the user to focus the search entry.
 
- set_placeholder(text)¶
 - Parameters:
 text (
str) – placeholder text
Sets the placeholder text in the search entry box.
- set_text(text)¶
 - Parameters:
 text (
str) – new search text
Sets the text in the search entry box. The ‘search’ signal will be emitted.
- do_show_popup() virtual¶
 
Signal Details¶
- RB.SearchEntry.signals.activate(search_entry, text)¶
 - Signal Name:
 activate- Flags:
 - Parameters:
 search_entry (
RB.SearchEntry) – The object which received the signaltext (
str) – search text
Emitted when the entry is activated.
- RB.SearchEntry.signals.search(search_entry, text)¶
 - Signal Name:
 search- Flags:
 - Parameters:
 search_entry (
RB.SearchEntry) – The object which received the signaltext (
str) – search text
Emitted when the search text changes. A signal handler must initiate a search on the current source.
- RB.SearchEntry.signals.show_popup(search_entry)¶
 - Signal Name:
 show-popup- Flags:
 - Parameters:
 search_entry (
RB.SearchEntry) – The object which received the signal
Emitted when a popup menu should be shown