def shrink_sidebar(w, size, key):
    from pudb.settings import save_config
    weight = self.columns.column_types[1][1]
    if (weight > (1 / 5)):
        weight /= 1.25
        CONFIG['sidebar_width'] = weight
        save_config(CONFIG)
        self.columns.column_types[1] = ('weight', weight)
        self.columns._invalidate()
def shrink_sidebar(w, size, key):
    from pudb.settings import save_config
    weight = self.columns.column_types[1][1]
    if (weight > (1 / 5)):
        weight /= 1.25
        CONFIG['sidebar_width'] = weight
        save_config(CONFIG)
        self.columns.column_types[1] = ('weight', weight)
        self.columns._invalidate()