def change_rhs_box(name, index, direction, w, size, key):
    from pudb.settings import save_config
    weight = self.rhs_col.item_types[index][1]
    if (direction < 0):
        if (weight > (1 / 5)):
            weight /= 1.25
    elif (weight < 5):
        weight *= 1.25
    CONFIG[(name + '_weight')] = weight
    save_config(CONFIG)
    self.rhs_col.item_types[index] = ('weight', weight)
    self.rhs_col._invalidate()
def change_rhs_box(name, index, direction, w, size, key):
    from pudb.settings import save_config
    weight = self.rhs_col.item_types[index][1]
    if (direction < 0):
        if (weight > (1 / 5)):
            weight /= 1.25
    elif (weight < 5):
        weight *= 1.25
    CONFIG[(name + '_weight')] = weight
    save_config(CONFIG)
    self.rhs_col.item_types[index] = ('weight', weight)
    self.rhs_col._invalidate()