Ejemplo n.º 1
0
 def on_touch_down(self, touch):
     if self.collide_point(*touch.pos):
         self.uMoveType = u'down'
         Slider.on_touch_down(self, touch)
         touch.grab(self)
         self.UpdateButtonPos()
         return True
     else:
         return super(cSliderEx, self).on_touch_down(touch)
Ejemplo n.º 2
0
 def on_touch_down(self, touch):
     if self.collide_point(*touch.pos):
         self.uMoveType=u'down'
         Slider.on_touch_down(self,touch)
         touch.grab(self)
         self.UpdateButtonPos()
         return True
     else:
         return super(cSliderEx, self).on_touch_down(touch)
Ejemplo n.º 3
0
 def on_touch_down(self, touch) -> bool:
     if self.collide_point(
             *touch.pos) and not Globals.oTheScreen.GuiIsBlocked():
         self.uMoveType = u'down'
         Slider.on_touch_down(self, touch)
         touch.grab(self)
         self.UpdateButtonPos()
         return True
     else:
         return super(cSliderEx, self).on_touch_down(touch)
Ejemplo n.º 4
0
 def on_touch_down(self, touch):
     tx, ty = touch.pos 
     vx, vy = self.value_pos
     if touch.is_mouse_scrolling or (abs(ty - vy) < 32 and abs(tx - self.center_x) < 32):
         return Slider.on_touch_down(self, touch)