def _data(self, row, column):  # const
     if column == 0:
         return self._apps[self._sorted_keys[row]]._wndtitle
     elif column == 1:
         return track_common.secs_to_dur(self._apps[self._sorted_keys[row]]._count)
     elif column == 2:
         return self._apps[self._sorted_keys[row]]._category
     return 0
示例#2
0
 def _data(self, row, column):  # const
     if column == 0:
         return self._apps[self._sorted_keys[row]]._wndtitle
     elif column == 1:
         return track_common.secs_to_dur(
             self._apps[self._sorted_keys[row]]._count)
     elif column == 2:
         return self._apps[self._sorted_keys[row]]._category
     return 0
示例#3
0
 def _data(self, row, column):  # const
     if column == 0:
         if len(self._matching) >= row+1 and self._matching[row]:
             return 'X' 
     if column == 1:
         return self._rules[row][0]
     if column == 2:
         return self._rules[row][1]
     if column == 3: #time column
         return track_common.secs_to_dur(self.get_time_category(self._rules[row]))
     return None