Handy.Keypad

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Handy.Keypad Handy.Keypad Gtk.Bin->Handy.Keypad Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (symbols_visible, letters_visible)

get_column_spacing ()

get_end_action ()

get_entry ()

get_letters_visible ()

get_row_spacing ()

get_start_action ()

get_symbols_visible ()

set_column_spacing (spacing)

set_end_action (end_action)

set_entry (entry)

set_letters_visible (letters_visible)

set_row_spacing (spacing)

set_start_action (start_action)

set_symbols_visible (symbols_visible)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

column-spacing

int

r/w/en

The amount of space between two consecutive columns

end-action

Gtk.Widget

r/w/en

The end action widget

entry

Gtk.Entry

r/w/en

The entry widget connected to the keypad

letters-visible

bool

r/w/en

Whether the letters below the digits should be visible

row-spacing

int

r/w/en

The amount of space between two consecutive rows

start-action

Gtk.Widget

r/w/en

The start action widget

symbols-visible

bool

r/w/en

Whether the hash, plus, and asterisk symbols should be visible

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.Bin

r

Class Details

class Handy.Keypad(**kwargs)
Bases:

Gtk.Bin

Abstract:

No

Structure:

Handy.KeypadClass

A keypad for dialing numbers

The HdyKeypad widget is a keypad for entering numbers such as phone numbers or PIN codes.

CSS nodes

HdyKeypad has a single CSS node with name keypad.

New in version 1.0.

classmethod new(symbols_visible, letters_visible)
Parameters:
  • symbols_visible (bool) – whether the hash, plus, and asterisk symbols should be visible

  • letters_visible (bool) – whether the letters below the digits should be visible

Returns:

the newly created HdyKeypad

Return type:

Gtk.Widget

Creates a new HdyKeypad.

New in version 1.0.

get_column_spacing()
Returns:

the column spacing of self

Return type:

int

Returns the amount of space between the columns of self.

New in version 1.0.

get_end_action()
Returns:

the end action widget

Return type:

Gtk.Widget or None

Gets the widget for the lower right corner (or left, in RTL locales).

New in version 1.0.

get_entry()
Returns:

the entry set

Return type:

Gtk.Entry

Gets the connected entry.

New in version 1.0.

get_letters_visible()
Returns:

whether the letters below the digits should be visible

Return type:

bool

Gets whether standard letters are displayed below the digits on the buttons.

New in version 1.0.

get_row_spacing()
Returns:

the row spacing of self

Return type:

int

Returns the amount of space between the rows of self.

New in version 1.0.

get_start_action()
Returns:

the start action widget

Return type:

Gtk.Widget or None

Gets the widget for the lower left corner (or right, in RTL locales).

New in version 1.0.

get_symbols_visible()
Returns:

whether symboles are visible

Return type:

bool

Gets whether symbols are displayed.

New in version 1.0.

set_column_spacing(spacing)
Parameters:

spacing (int) – the amount of space to insert between columns

Sets the amount of space between columns of self.

New in version 1.0.

set_end_action(end_action)
Parameters:

end_action (Gtk.Widget or None) – the end action widget

Sets the widget for the lower right corner (or left, in RTL locales).

New in version 1.0.

set_entry(entry)
Parameters:

entry (Gtk.Entry or None) – an entry

Binds entry to self.

New in version 1.0.

set_letters_visible(letters_visible)
Parameters:

letters_visible (bool) – whether the letters below the digits should be visible

Sets whether standard letters are displayed below the digits on the buttons.

New in version 1.0.

set_row_spacing(spacing)
Parameters:

spacing (int) – the amount of space to insert between rows

Sets the amount of space between rows of self.

New in version 1.0.

set_start_action(start_action)
Parameters:

start_action (Gtk.Widget or None) – the start action widget

Sets the widget for the lower left corner (or right, in RTL locales).

New in version 1.0.

set_symbols_visible(symbols_visible)
Parameters:

symbols_visible (bool) – whether the hash, plus, and asterisk symbols should be visible

Sets whether standard letters are displayed below the digits on the buttons.

New in version 1.0.

Property Details

Handy.Keypad.props.column_spacing
Name:

column-spacing

Type:

int

Default Value:

6

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The amount of space between two consecutive columns.

New in version 1.0.

Handy.Keypad.props.end_action
Name:

end-action

Type:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The widget for the lower end corner of self.

New in version 1.0.

Handy.Keypad.props.entry
Name:

entry

Type:

Gtk.Entry

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The entry widget connected to the keypad.

The entry will block any input not possible to type with the keypad.

New in version 1.0.

Handy.Keypad.props.letters_visible
Name:

letters-visible

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether standard letters should be displayed below the digits on the buttons.

New in version 1.0.

Handy.Keypad.props.row_spacing
Name:

row-spacing

Type:

int

Default Value:

6

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The amount of space between two consecutive rows.

New in version 1.0.

Handy.Keypad.props.start_action
Name:

start-action

Type:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The widget for the lower start corner of self.

New in version 1.0.

Handy.Keypad.props.symbols_visible
Name:

symbols-visible

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether to display symbols.

This includes hash and asterisk buttons, and the plus symbol at the bottom of its 0 button.

New in version 1.0.