mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
35 lines
602 B
Python
35 lines
602 B
Python
# -*- coding: utf-8 -*-
|
|
"""Open install dialog."""
|
|
|
|
import sys
|
|
from Qt import QtWidgets # noqa
|
|
from Qt.QtCore import Signal # noqa
|
|
|
|
from .install_dialog import InstallDialog
|
|
from .bootstrap_repos import BootstrapRepos
|
|
|
|
|
|
RESULT = 0
|
|
|
|
|
|
def get_result(res: int):
|
|
"""Sets result returned from dialog."""
|
|
global RESULT
|
|
RESULT = res
|
|
|
|
|
|
def run():
|
|
"""Show Igniter dialog."""
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
d = InstallDialog()
|
|
d.finished.connect(get_result)
|
|
d.show()
|
|
app.exec_()
|
|
return RESULT
|
|
|
|
|
|
__all__ = [
|
|
"InstallDialog",
|
|
"BootstrapRepos",
|
|
"run"
|
|
]
|