controls/CustomTable.py
changeset 1847 6198190bc121
parent 1740 b789b695b5c6
child 1878 fb73a6b6622d
equal deleted inserted replaced
1846:14b40afccd69 1847:6198190bc121
   190 
   190 
   191     def ClearHighlights(self, highlight_type=None):
   191     def ClearHighlights(self, highlight_type=None):
   192         if highlight_type is None:
   192         if highlight_type is None:
   193             self.Highlights = {}
   193             self.Highlights = {}
   194         else:
   194         else:
   195             for row, row_highlights in self.Highlights.iteritems():
   195             for _row, row_highlights in self.Highlights.iteritems():
   196                 row_items = row_highlights.items()
   196                 row_items = row_highlights.items()
   197                 for col, col_highlights in row_items:
   197                 for col, col_highlights in row_items:
   198                     if highlight_type in col_highlights:
   198                     if highlight_type in col_highlights:
   199                         col_highlights.remove(highlight_type)
   199                         col_highlights.remove(highlight_type)
   200                     if len(col_highlights) == 0:
   200                     if len(col_highlights) == 0: