Callbacks

SimpleProgressCallback (number, *user_data)

UnsavedDocumentTitleCallback (num)

Details

Gfls.SimpleProgressCallback(number, *user_data)
Parameters:
  • number (int) – the number.

  • user_data (object or None) – user data.

Like Gio.FileProgressCallback but without the total.

New in version 0.4.

Gfls.UnsavedDocumentTitleCallback(num)
Parameters:

num (int) – the number.

Returns:

the created title.

Return type:

str

Type definition for a function that will be called to create a string containing num, to give a name to a document not yet present on disk.

New in version 0.1.