mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
code clean
This commit is contained in:
parent
13785ca7ad
commit
6048ebfcea
1 changed files with 3 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import os
|
||||
from PySide2 import QtWidgets, QtCore
|
||||
|
||||
import uiwidgets
|
||||
import app_utils
|
||||
import ftrack_lib
|
||||
|
||||
|
||||
def clear_inner_modules():
|
||||
import sys
|
||||
|
||||
|
|
@ -20,6 +20,7 @@ def clear_inner_modules():
|
|||
del sys.modules["uiwidgets"]
|
||||
print("uiwidgets module removed from sys.modules")
|
||||
|
||||
|
||||
class MainWindow(QtWidgets.QWidget):
|
||||
|
||||
def __init__(self, klass, *args, **kwargs):
|
||||
|
|
@ -74,6 +75,7 @@ class FlameToFtrackPanel(object):
|
|||
self.session = ftrack_lib.get_ftrack_session()
|
||||
self.selection = selection
|
||||
self.window = MainWindow(self)
|
||||
|
||||
# creating ui
|
||||
self.window.setMinimumSize(1500, 600)
|
||||
self.window.setWindowTitle('Sequence Shots to Ftrack')
|
||||
|
|
@ -517,7 +519,6 @@ class FlameToFtrackPanel(object):
|
|||
self.temp_data_dir = None
|
||||
print("All Temp data were destroied ...")
|
||||
|
||||
|
||||
def close(self):
|
||||
self._save_ui_state_to_cfg()
|
||||
self.session.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue