예제 #1
0
 def draw_selection(self, i1, i2, x, y, dc):
     if i1 <= 0 and i2 >= self.length:
         self.device.invert_rect(x, y, self.width, self.height, dc)
     else:
         Box.draw_selection(self, i1, i2, x, y, dc)
예제 #2
0
 def draw_selection(self, i1, i2, x, y, dc):
     if i1<=0 or i2>=len(self):
         self.device.invert_rect(x, y, self.width, self.height, dc)
     else:
         Box.draw_selection(self, i1, i2, x, y, dc)