def METHOD_NAME(cls, parent):
    def changed(entry):
        CONFIG.default_pattern = entry.get_text()
    vbox = Gtk.VBox(spacing=6)
    def create_pattern():
        hbox = Gtk.HBox(spacing=6)
        hbox.set_border_width(6)
        label = Gtk.Label(label=_("Default filename pattern:"))
        hbox.pack_start(label, False, True, 0)
        entry = UndoEntry()
        if CONFIG.default_pattern:
            entry.set_text(CONFIG.default_pattern)
        entry.connect('changed', changed)
        hbox.pack_start(entry, True, True, 0)
        return hbox
    vbox.pack_start(create_pattern(), True, True, 0)
    return vbox