chore(lib): re-organizing the module

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.
This commit is contained in:
Jérome Eertmans
2024-07-23 14:01:59 +02:00
parent c3e1aa0276
commit ae8d5b6aab
32 changed files with 394 additions and 220 deletions

View File

@ -0,0 +1,14 @@
"""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([])