Beispiel #1
0
 def _get_bg_color(self):
     if self.project != None and self in self.project.selected:
         return colors.get_traits_color_by_name("selected_bg")
     return self.default_bg_color
Beispiel #2
0
 def _get_default_bg_color(self):
     if self.max_latency > 0 and max(self.end_ts -
                                     self.start_ts) > self.max_latency:
         return (1, .1, .1, 1)
     return colors.get_traits_color_by_name(self.process_type + "_bg")
Beispiel #3
0
 def _get_bg_color(self):
     return colors.get_traits_color_by_name("idle_bg")
Beispiel #4
0
 def _get_bg_color(self):
     if self.project != None and self in self.project.selected:
         return  colors.get_traits_color_by_name("selected_bg")
     return self.default_bg_color
Beispiel #5
0
 def _get_default_bg_color(self):
     if self.max_latency >0 and max(self.end_ts - self.start_ts)>self.max_latency:
         return (1,.1,.1,1)
     return colors.get_traits_color_by_name(self.process_type+"_bg")
Beispiel #6
0
 def _get_bg_color(self):
     return colors.get_traits_color_by_name("idle_bg")