BuilderScope#

class BuilderScope(*args, **kwargs)#

Implementations: BuilderCScope

GtkBuilderScope is an interface to provide language binding support to GtkBuilder.

The goal of GtkBuilderScope is to look up programming-language-specific values for strings that are given in a GtkBuilder UI file.

The primary intended audience is bindings that want to provide deeper integration of GtkBuilder into the language.

A GtkBuilderScope instance may be used with multiple GtkBuilder objects, even at once.

By default, GTK will use its own implementation of GtkBuilderScope for the C language which can be created via new.

If you implement GtkBuilderScope for a language binding, you may want to (partially) derive from or fall back to a BuilderCScope, as that class implements support for automatic lookups from C symbols.

Virtual Methods#

class BuilderScope
do_create_closure(builder: Builder, function_name: str, flags: BuilderClosureFlags, object: Object) Callable[[...], Any]#

The type of the None singleton.

Parameters:
  • builder

  • function_name

  • flags

  • object

do_get_type_from_function(builder: Builder, function_name: str) type#

The type of the None singleton.

Parameters:
  • builder

  • function_name

do_get_type_from_name(builder: Builder, type_name: str) type#

The type of the None singleton.

Parameters:
  • builder

  • type_name