def METHOD_NAME(self):
    """
    Convert widget names to attributes of this object.
    It means a widget named vbox-dialog in GtkBuilder
    is referred using self.vbox_dialog in the code.
    """
    for widget in self.builder.get_objects():
        # Just to be safe - every widget from the builder is buildable
        if not isinstance(widget, Gtk.Buildable):
            continue
        # The following call looks ugly, but see Gnome bug 591085
        widget_name = Gtk.Buildable.get_name(widget)
        widget_api_name = '_'.join(re.findall(tokenize.Name, widget_name))
        if hasattr(self, widget_api_name):
            raise AttributeError(
                "instance %s already has an attribute %s" % (
                    self, widget_api_name))
        else:
            setattr(self, widget_api_name, widget)