Logo

Contents:

  • faceswap
    • lib package
    • plugins package
    • scripts package
    • tools package
      • tools.alignments package
      • tools.effmpeg package
      • tools.manual package
        • manual.face_viewer package
        • manual.frame_viewer package
          • tools.manual.frame_viewer.control Module
            • BackgroundImage
            • Navigation
            • Classes
              • BackgroundImage
              • Navigation
                • Navigation
                  • Navigation.tk_is_playing
                  • Navigation.decrement_frame()
                  • Navigation.goto_first_frame()
                  • Navigation.goto_last_frame()
                  • Navigation.handle_play_button()
                  • Navigation.increment_frame()
                  • Navigation.nav_scale_callback()
                  • Navigation.stop_playback()
                  • Navigation.decrement_frame()
                  • Navigation.goto_first_frame()
                  • Navigation.goto_last_frame()
                  • Navigation.handle_play_button()
                  • Navigation.increment_frame()
                  • Navigation.nav_scale_callback()
                  • Navigation.stop_playback()
                  • Navigation.tk_is_playing
          • tools.manual.frame_viewer.frame Module
          • tools.manual.frame_viewer.editor.bounding_box Module
          • tools.manual.frame_viewer.editor.extract_box Module
          • tools.manual.frame_viewer.editor.landmarks Module
          • tools.manual.frame_viewer.editor.mask Module
        • manual package
      • tools.mask package
      • tools.model package
      • tools.preview package
      • sort package
    • setup Module
    • update_deps Module
faceswap
  • faceswap
  • tools package
  • tools.manual package
  • Navigation
  • View page source

Navigation

class tools.manual.frame_viewer.control.Navigation(display_frame)

Bases: object

Handles playback and frame navigation for the Frame Viewer Window.

Parameters:

display_frame (DisplayFrame) – The parent frame viewer window

Attributes Summary

tk_is_playing

Whether the stream is currently playing.

Methods Summary

decrement_frame()

Update The frame navigation position to the previous frame based on filter.

goto_first_frame()

Go to the first frame that meets the filter criteria.

goto_last_frame()

Go to the last frame that meets the filter criteria.

handle_play_button()

Handle the play button.

increment_frame([frame_count, is_playing])

Update The frame navigation position to the next frame based on filter.

nav_scale_callback(*args[, reset_progress])

Adjust transport slider scale for different filters.

stop_playback()

Stop play back if playing

Attributes Documentation

tk_is_playing

Whether the stream is currently playing.

Type:

tkinter.BooleanVar

Methods Documentation

decrement_frame()

Update The frame navigation position to the previous frame based on filter.

goto_first_frame()

Go to the first frame that meets the filter criteria.

goto_last_frame()

Go to the last frame that meets the filter criteria.

handle_play_button()

Handle the play button.

Switches the tk_is_playing variable.

increment_frame(frame_count=None, is_playing=False)

Update The frame navigation position to the next frame based on filter.

nav_scale_callback(*args, reset_progress=True)

Adjust transport slider scale for different filters. Hide or display optional filter controls.

stop_playback()

Stop play back if playing

decrement_frame()

Update The frame navigation position to the previous frame based on filter.

goto_first_frame()

Go to the first frame that meets the filter criteria.

goto_last_frame()

Go to the last frame that meets the filter criteria.

handle_play_button()

Handle the play button.

Switches the tk_is_playing variable.

increment_frame(frame_count=None, is_playing=False)

Update The frame navigation position to the next frame based on filter.

nav_scale_callback(*args, reset_progress=True)

Adjust transport slider scale for different filters. Hide or display optional filter controls.

stop_playback()

Stop play back if playing

property tk_is_playing

Whether the stream is currently playing.

Type:

tkinter.BooleanVar

Previous Next

© Copyright 2025, faceswap.dev.

Built with Sphinx using a theme provided by Read the Docs.