mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-05-20 03:57:38 +08:00

This PR refactors a lot of the code in order to have a better organized codebase. If will that I needed to create a second level of submodules, to better distinguish the different parts of this project.
15 lines
254 B
Python
15 lines
254 B
Python
"""Qt utils."""
|
|
|
|
from qtpy.QtWidgets import QApplication
|
|
|
|
|
|
def qapp() -> QApplication:
|
|
"""
|
|
Return a QApplication instance, creating one
|
|
if needed.
|
|
"""
|
|
if app := QApplication.instance():
|
|
return app
|
|
|
|
return QApplication([])
|