mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
25 lines
383 B
Python
25 lines
383 B
Python
# -*- coding: utf-8 -*-
|
|
"""Open install dialog."""
|
|
|
|
import sys
|
|
from qtpy import QtWidgets
|
|
|
|
from .install_dialog import InstallDialog
|
|
|
|
|
|
RESULT = 0
|
|
|
|
|
|
def get_result(res: int):
|
|
"""Sets result returned from dialog."""
|
|
global RESULT
|
|
RESULT = res
|
|
|
|
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
|
|
d = InstallDialog()
|
|
d.finished.connect(get_result)
|
|
d.open()
|
|
app.exec()
|
|
sys.exit(RESULT)
|