moved 'window.py' to subfolder 'ui'

This commit is contained in:
Jakub Trllo 2023-10-13 18:08:16 +02:00
parent 065ebc389c
commit 178ab5d77a
3 changed files with 18 additions and 8 deletions

View file

@ -1,7 +1,17 @@
import click
from openpype.tools.utils import get_openpype_qt_app
from openpype.tools.push_to_project.window import PushToContextSelectWindow
from openpype.tools.ayon_push_to_project.ui import PushToContextSelectWindow
def main_show(project_name, version_id):
app = get_openpype_qt_app()
window = PushToContextSelectWindow()
window.show()
window.set_source(project_name, version_id)
app.exec_()
@click.command()
@ -15,13 +25,7 @@ def main(project, version):
version (str): Version id.
"""
app = get_openpype_qt_app()
window = PushToContextSelectWindow()
window.show()
window.controller.set_source(project, version)
app.exec_()
main_show(project, version)
if __name__ == "__main__":

View file

@ -0,0 +1,6 @@
from .window import PushToContextSelectWindow
__all__ = (
"PushToContextSelectWindow",
)