utils¶
- janim.gui.handlers.utils.jump(viewer: AnimViewer, command: Timeline.GuiCommand) None¶
Jump to the
global_tat which this command is executed
- janim.gui.handlers.utils.get_confirm_buttons(parent: QWidget) tuple[QDialogButtonBox, QPushButton, QPushButton]¶
Get common confirm/cancel button widgets
- janim.gui.handlers.utils.get_undo_redo_buttons(parent: QWidget, on_undo: Callable[[]], on_redo: Callable[[]]) tuple[QPushButton, QPushButton]¶
Get common undo/redo button widgets
- janim.gui.handlers.utils.silent_runtime_error(func)¶
When closing the parent widget while a blocking dialog is open, a
RuntimeErrortraceback will be outputUsing this decorator can suppress the thrown
RuntimeErrormessage
- class janim.gui.handlers.utils.HandlerPanel(viewer: AnimViewer, command: Timeline.GuiCommand)¶
Bases:
QWidget- update_glw() None¶
- update_overlay() None¶
- close_and_rebuild_timeline() None¶
- showEvent(event) None¶
- closeEvent(event) None¶
- load_options() None¶
- save_options() None¶
- setting_key(name: str) str¶
- to_int(text: str | None) int | None¶
- staticMetaObject = PySide6.QtCore.QMetaObject("HandlerPanel" inherits "QWidget": )¶
- class janim.gui.handlers.utils.SourceDiff(command: GuiCommand, parent: QWidget | None = None)¶
Bases:
QFrameDisplay two lines of code before and after
lineno, with modified code shown in a before-and-after comparison- submitted¶
- set_replacement(replacement: str) None¶
- submit() None¶
- staticMetaObject = PySide6.QtCore.QMetaObject("SourceDiff" inherits "QFrame": Methods: #33 type=Signal, signature=submitted() )¶