mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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
|
from PySide2 import QtWidgets, QtCore
|
||||||
|
|
||||||
import uiwidgets
|
import uiwidgets
|
||||||
import app_utils
|
import app_utils
|
||||||
import ftrack_lib
|
import ftrack_lib
|
||||||
|
|
||||||
|
|
||||||
def clear_inner_modules():
|
def clear_inner_modules():
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
@ -20,6 +20,7 @@ def clear_inner_modules():
|
||||||
del sys.modules["uiwidgets"]
|
del sys.modules["uiwidgets"]
|
||||||
print("uiwidgets module removed from sys.modules")
|
print("uiwidgets module removed from sys.modules")
|
||||||
|
|
||||||
|
|
||||||
class MainWindow(QtWidgets.QWidget):
|
class MainWindow(QtWidgets.QWidget):
|
||||||
|
|
||||||
def __init__(self, klass, *args, **kwargs):
|
def __init__(self, klass, *args, **kwargs):
|
||||||
|
|
@ -74,6 +75,7 @@ class FlameToFtrackPanel(object):
|
||||||
self.session = ftrack_lib.get_ftrack_session()
|
self.session = ftrack_lib.get_ftrack_session()
|
||||||
self.selection = selection
|
self.selection = selection
|
||||||
self.window = MainWindow(self)
|
self.window = MainWindow(self)
|
||||||
|
|
||||||
# creating ui
|
# creating ui
|
||||||
self.window.setMinimumSize(1500, 600)
|
self.window.setMinimumSize(1500, 600)
|
||||||
self.window.setWindowTitle('Sequence Shots to Ftrack')
|
self.window.setWindowTitle('Sequence Shots to Ftrack')
|
||||||
|
|
@ -517,7 +519,6 @@ class FlameToFtrackPanel(object):
|
||||||
self.temp_data_dir = None
|
self.temp_data_dir = None
|
||||||
print("All Temp data were destroied ...")
|
print("All Temp data were destroied ...")
|
||||||
|
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
self._save_ui_state_to_cfg()
|
self._save_ui_state_to_cfg()
|
||||||
self.session.close()
|
self.session.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue