Functions

  ease_out_cubic (t)
  enum_value_row_name (value, user_data)
  get_enable_animations (widget)
  init (argv)
  list_box_separator_header (row, before, unused_user_data)
  string_utf8_len (string)
  string_utf8_truncate (string, len)

Details

Handy.ease_out_cubic(t)
Parameters:t (float) – the term
Returns:the ease out for t.
Return type:float

Computes the ease out for t.

New in version 0.0.11.

Handy.enum_value_row_name(value, user_data)
Parameters:
Returns:

a newly allocated displayable name that represents value

Return type:

str

This is a default implementation of Handy.ComboRowGetEnumValueNameFunc to be used with Handy.ComboRow.set_for_enum(). If the enumeration has a nickname, it will return it, otherwise it will return its name.

New in version 0.0.6.

Handy.get_enable_animations(widget)
Parameters:widget (Gtk.Widget) – a Gtk.Widget
Returns:True if animations are enabled for widget.
Return type:bool

Returns whether animations are enabled for that widget. This should be used when implementing an animated widget to know whether to animate it or not.

New in version 0.0.11.

Handy.init(argv)
Parameters:argv ([str] or None) – Address of the argv parameter of main(), or None. Any options understood by Handy are stripped before return.
Returns:True if initialization was successful, False otherwise.
argv:Address of the argv parameter of main(), or None. Any options understood by Handy are stripped before return.
Return type:(bool, argv: [str])

Call this function before using any other Handy functions in your GUI applications. If libhandy has already been initialized, the function will simply return without processing the new arguments.

Handy.list_box_separator_header(row, before, unused_user_data)
Parameters:

Separates rows by using Gtk.Separator as headers. The first row doesn’t have a separator as there is no row above it.

New in version 0.0.6.

Handy.string_utf8_len(string)
Parameters:string (GLib.String) – a GLib.String
Returns:the length of string in characters
Return type:int

Computes the length of the string in utf-8 characters. See GLib.utf8_strlen.

Handy.string_utf8_truncate(string, len)
Parameters:
Returns:

string

Return type:

GLib.String

Cut of the end of the string string so that len utf8 characters remain.