nodes: 0, module; 1, function_definition; 2, function_name:_config_sortable; 3, parameters; 4, block; 5, identifier:self; 6, identifier:sortable; 7, expression_statement; 8, for_statement; 9, expression_statement; 10, comment:"""Configure a new sortable state"""; 11, identifier:col; 12, subscript; 13, block; 14, assignment; 15, identifier:self; 16, string:"columns"; 17, expression_statement; 18, expression_statement; 19, attribute; 20, identifier:sortable; 21, assignment; 22, call; 23, identifier:self; 24, identifier:_sortable; 25, identifier:command; 26, conditional_expression:(lambda c=col: self._sort_column(c, True)) if sortable else ""; 27, attribute; 28, argument_list; 29, parenthesized_expression; 30, identifier:sortable; 31, string:""; 32, identifier:self; 33, identifier:heading; 34, identifier:col; 35, keyword_argument; 36, lambda; 37, identifier:command; 38, identifier:command; 39, lambda_parameters; 40, call; 41, default_parameter; 42, attribute; 43, argument_list; 44, identifier:c; 45, identifier:col; 46, identifier:self; 47, identifier:_sort_column; 48, identifier:c; 49, True
code: def _config_sortable(self, sortable):
          """Configure a new sortable state"""
          for col in self["columns"]:
              command = (lambda c=col: self._sort_column(c, True)) if sortable else ""
              self.heading(col, command=command)
          self._sortable = sortable