Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/e/pensool-HEAD/source/gui/manager/pointer.py   pensool(Download)
 
  if state is "moving":
    if speed <= config.GUI_MOVING_SLOWING_THRESHOLD:
      state = "slowed"
      pointer_timer.start(config.GUI_MOVING_POPUP_TIME, timeout_cb) # after a delay, go to stopped state
    # else moved fast
  elif state is "slowed":
    if speed > config.GUI_MOVING_SLOWING_THRESHOLD:
    # else same state  still slow motion
  elif state is "stopped":
    if speed <= config.GUI_MOVING_SLOWING_THRESHOLD:
      # slow motion from stopped, try pick if user is making small adjustment
      # if it is acceleration, hope nothing to pick