From 75dbe7bd7de7ab6a90846ada8384d9bc724a51de Mon Sep 17 00:00:00 2001 From: mswindler Date: Wed, 4 Sep 2019 14:18:46 -0600 Subject: [PATCH] Incremental progress on Manager #30 --- pipe/app/__init__.py | 6 ++ pipe/app/manager/main.py | 57 ++++++++++++++----- pipe/tools/__init__.py | 4 +- .../houtools/_custom/menus/MainMenuCommon.xml | 15 +++++ 4 files changed, 67 insertions(+), 15 deletions(-) create mode 100644 pipe/app/__init__.py diff --git a/pipe/app/__init__.py b/pipe/app/__init__.py new file mode 100644 index 0000000..e7faaa4 --- /dev/null +++ b/pipe/app/__init__.py @@ -0,0 +1,6 @@ +""" +abstracted dcc tools package +@author Brigham Young University +""" + +__all__ = ['manager'] diff --git a/pipe/app/manager/main.py b/pipe/app/manager/main.py index 59a6650..b3e2964 100644 --- a/pipe/app/manager/main.py +++ b/pipe/app/manager/main.py @@ -672,20 +672,51 @@ def __init__(self, parent): def sizeHint(self): return QtCore.QSize(540, 800) +class Manager: -if __name__ == '__main__': - print("here") - print("sys.argv ", sys.argv) + def __init__(self): + pass + + + def go(self): + print("here") + print("sys.argv ", sys.argv) - try: - self.app = QtWidgets.QApplication(sys.argv) - except: - print("failed to create qapp") + # try: + # self.app = QtWidgets.QApplication(sys.argv) + # except: + # print("failed to create qapp") - list = Status.ALL + list = Status.ALL - print("here 2") - window = ElementBrowser() - print("here") - window.show() - sys.exit(app.exec_()) + print("here 2") + try: + window = ElementBrowser() + except Exception as e: + print(e) + + print("here") # fails between here and shown + try: + window.show() + except Exception as e: + print(e) + + print("shown") + # sys.exit(app.exec_()) + +# if __name__ == '__main__': +# print("here") +# print("sys.argv ", sys.argv) +# +# try: +# self.app = QtWidgets.QApplication(sys.argv) +# except: +# print("failed to create qapp") +# +# list = Status.ALL +# +# print("here 2") +# window = ElementBrowser() +# print("here") +# window.show() +# sys.exit(app.exec_()) diff --git a/pipe/tools/__init__.py b/pipe/tools/__init__.py index 82c52c4..06f8a52 100644 --- a/pipe/tools/__init__.py +++ b/pipe/tools/__init__.py @@ -1,6 +1,6 @@ """ -abstracted byu tools package +abstracted dcc tools package @author Brigham Young University """ -__all__ = ['general', 'hou', 'manager', 'mass', 'maya', 'nuke', 'sbs', 'test'] +__all__ = ['general', 'houtools', 'mass', 'mayatools', 'nuketools', 'sbstools', 'test'] diff --git a/pipe/tools/houtools/_custom/menus/MainMenuCommon.xml b/pipe/tools/houtools/_custom/menus/MainMenuCommon.xml index e46b266..d36f914 100644 --- a/pipe/tools/houtools/_custom/menus/MainMenuCommon.xml +++ b/pipe/tools/houtools/_custom/menus/MainMenuCommon.xml @@ -43,6 +43,21 @@ creator.run(type="actor") + +