Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/c/c/ccx2-HEAD/src/ccx2/playlist.py   ccx2(Download)
 
    if focus_active:
      self.set_focus(self.body.current_pos)
 
    if from_xmms:
       cp <= self._bottom_pos and cp >= self._top_pos and \
       (pos > self._bottom_pos or pos < self._top_pos):
      self.set_focus(pos)
 
  def cmd_activate(self, args):
      except ValueError:
        return commands.CONTINUE_RUNNING_COMMANDS
      self.set_focus(p)
 
  def cmd_rm(self, args):
      self.xs.playlist_move(pos, dest, sync=False)
      if not self.marked_data: # moving only the focused song
        self.set_focus(dest)
      else:
        self.toggle_mark(pos, mid)
      self.xs.playlist_move(pos, dest, sync=False)
      if not self.marked_data: # moving only the focused song
        self.set_focus(dest)
      else:
        self.toggle_mark(pos, mid)