def enter(self): self._cfg = self._get_scene_func() if not self._cfg: return player = self._gl_widget.get_player() if not player: return player.set_scene(self._cfg) self._gl_widget.update()
def _connect_seekbar(self): player = self._gl_widget.get_player() player.set_scene(self._cfg) player.onPlay.connect(self._seekbar.set_play_state) player.onPause.connect(self._seekbar.set_pause_state) player.onSceneMetadata.connect(self._seekbar.set_scene_metadata) player.onFrame.connect(self._seekbar.set_frame_time) self._seekbar.seek.connect(player.seek) self._seekbar.play.connect(player.play) self._seekbar.pause.connect(player.pause) self._seekbar.step.connect(player.step) self._seekbar.stop.connect(player.reset_scene)