Gtk.EmojiChooser

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Native Gtk.Native GObject.GInterface->Gtk.Native Gtk.ShortcutManager Gtk.ShortcutManager GObject.GInterface->Gtk.ShortcutManager GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.EmojiChooser Gtk.EmojiChooser Gtk.Popover Gtk.Popover Gtk.Native->Gtk.Popover Gtk.Popover->Gtk.EmojiChooser Gtk.ShortcutManager->Gtk.Popover Gtk.Widget->Gtk.Popover

Example

../_images/EmojiChooser.png
Subclasses:

None

Methods

Inherited:

Gtk.Popover (21), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Native (6)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

Gtk.Popover (2), Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9), Gtk.ShortcutManager (2)

Properties

Inherited:

Gtk.Popover (8), Gtk.Widget (34), Gtk.Accessible (1)

Signals

Inherited:

Gtk.Popover (2), Gtk.Widget (13), GObject.Object (1)

Name

Short Description

emoji-picked

Emitted when the user selects an Emoji.

Fields

Inherited:

Gtk.Popover (2), Gtk.Widget (13), GObject.Object (1)

Class Details

class Gtk.EmojiChooser(**kwargs)
Bases:

Gtk.Popover

Abstract:

No

Structure:

Gtk.EmojiChooserClass

The GtkEmojiChooser is used by text widgets such as GtkEntry or GtkTextView to let users insert Emoji characters.

An example Gtk.EmojiChooser

GtkEmojiChooser emits the [signal`Gtk`.EmojiChooser::emoji-picked] signal when an Emoji is selected.

CSS nodes

`` popover ├── box.emoji-searchbar │ ╰── entry.search ╰── box.emoji-toolbar

├── button.image-button.emoji-section ├── … ╰── button.image-button.emoji-section

``

Every GtkEmojiChooser consists of a main node called popover. The contents of the popover are largely implementation defined and supposed to inherit general styles. The top searchbar used to search emoji and gets the .emoji-searchbar style class itself. The bottom toolbar used to switch between different emoji categories consists of buttons with the .emoji-section style class and gets the .emoji-toolbar style class itself.

classmethod new()[source]
Returns:

a new GtkEmojiChooser

Return type:

Gtk.Widget

Creates a new GtkEmojiChooser.

Signal Details

Gtk.EmojiChooser.signals.emoji_picked(emoji_chooser, text)
Signal Name:

emoji-picked

Flags:

RUN_LAST

Parameters:
  • emoji_chooser (Gtk.EmojiChooser) – The object which received the signal

  • text (str) – the Unicode sequence for the picked Emoji, in UTF-8

Emitted when the user selects an Emoji.