initial commit of new tool

This commit is contained in:
iLLiCiTiT 2021-10-29 18:30:57 +02:00
parent 1456fa9c4e
commit 640b68b89c
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,10 @@
from .window import (
ContextDialog,
main
)
__all__ = (
"ContextDialog",
"main"
)

View file

@ -0,0 +1,26 @@
from Qt import QtWidgets, QtCore, QtGui
class ContextDialog(QtWidgets.QDialog):
"""Dialog to select a context.
Context has 3 parts:
- Project
- Aseet
- Task
It is possible to predefine project and asset. In that case their widgets
will have passed preselected values and will be disabled.
"""
def main(
path_to_store,
project_name=None,
asset_name=None,
strict=True
):
app = QtWidgets.QApplication([])
window = ContextDialog()
window.show()
app.exec_()