def do_cmd(self, action, value): if not self.thread and not self.is_client_manager: return False if action == keys.get_key_media_play(): if self.thread.pause: self.thread.pause = False return True return False elif action == keys.get_key_media_pause(): if not self.thread.pause: self.thread.pause = True return True return False elif action == keys.get_key_media_loop(): self.set_loop_enable(not self.active_loop) elif action == keys.get_key_media_frame(): self.change_frame(value) else: return False return True
def do_cmd(self, action, value): if not self.thread and not self.is_client_manager: return False if action == keys.get_key_media_play(): if self.thread.pause: self.thread.pause = False return True return False elif action == keys.get_key_media_pause(): if not self.thread.pause: self.thread.pause = True return True return False elif action == keys.get_key_media_loop(): self.set_loop_enable(not self.active_loop) elif action == keys.get_key_media_frame(): self.change_frame(value) else: return False return True
def active_loop(self): media_name = self.ui.cbMedia.currentText() self.controller.cmd_to_media(media_name, keys.get_key_media_loop(), None)
def active_loop(self): media_name = self.ui.cbMedia.currentText() self.controller.cmd_to_media( media_name, keys.get_key_media_loop(), None)