mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
moved 'window.py' to subfolder 'ui'
This commit is contained in:
parent
065ebc389c
commit
178ab5d77a
3 changed files with 18 additions and 8 deletions
|
|
@ -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__":
|
||||
|
|
|
|||
6
openpype/tools/ayon_push_to_project/ui/__init__.py
Normal file
6
openpype/tools/ayon_push_to_project/ui/__init__.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from .window import PushToContextSelectWindow
|
||||
|
||||
|
||||
__all__ = (
|
||||
"PushToContextSelectWindow",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue