:right-sidebar: True BuilderScope =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: BuilderScope(*args, **kwargs) :no-contents-entry: Implementations: :class:`~gi.repository.Gtk.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 :obj:`~gi.repository.Gtk.BuilderCScope.new`\. If you implement ``GtkBuilderScope`` for a language binding, you may want to (partially) derive from or fall back to a :obj:`~gi.repository.Gtk.BuilderCScope`\, as that class implements support for automatic lookups from C symbols. Virtual Methods --------------- .. rst-class:: interim-class .. class:: BuilderScope :no-index: .. method:: do_create_closure(builder: ~gi.repository.Gtk.Builder, function_name: str, flags: ~gi.repository.Gtk.BuilderClosureFlags, object: ~gi.repository.GObject.Object) -> ~gi.repository.GObject.Closure The type of the None singleton. :param builder: :param function_name: :param flags: :param object: .. method:: do_get_type_from_function(builder: ~gi.repository.Gtk.Builder, function_name: str) -> ~gobject.GType The type of the None singleton. :param builder: :param function_name: .. method:: do_get_type_from_name(builder: ~gi.repository.Gtk.Builder, type_name: str) -> ~gobject.GType The type of the None singleton. :param builder: :param type_name: