aboutsummaryrefslogtreecommitdiffstats
path: root/gui/gui_common.py
blob: 39bb38cd16012982fa6f412ebc47b09c82d32894 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
from typing import cast
from PySide6.QtGui import QFont
from PySide6.QtWidgets import QApplication


def ensure_qt_app() -> QApplication:
    app = QApplication.instance()
    if app is None:
        app = QApplication([])
    app = cast(QApplication, app)
    app.setFont(QFont("Calibri", 12))
    return app
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage