def METHOD_NAME(self, v):
    # create a slider for each var
    sliderbox = Gtk.HBox(homogeneous=False, spacing=0)
    label = Gtk.Label(pretty_name(v.name))
    sliderbox.pack_start(label, False, True, 20)
    if v.min != v.max:
        step = v.step
    else:
        step = 0.0
    if v.max - v.min > 2:
        adj = Gtk.Adjustment(v.value, v.min, v.max, step, page_incr=2, page_size=1)
    else:
        adj = Gtk.Adjustment(v.value, v.min, v.max, step)
    adj.connect("value_changed", self.widget_changed, v)
    hscale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
    hscale.set_value_pos(Gtk.PositionType.RIGHT)
    if (v.max - v.min) / (step or 0.1) > 10:
        hscale.set_digits(2)
    sliderbox.pack_start(hscale, True, True, 0)
    self.container.pack_start(sliderbox, True, True, 0)
    return hscale