diff --git a/artellapipe/tools/tagger/core/tagger.py b/artellapipe/tools/tagger/core/tagger.py index 1e1ebd1..e55b26d 100644 --- a/artellapipe/tools/tagger/core/tagger.py +++ b/artellapipe/tools/tagger/core/tagger.py @@ -13,8 +13,7 @@ __email__ = "tpovedatd@gmail.com" import logging -import inspect -import importlib +import inspect from functools import partial from Qt.QtCore import * @@ -348,9 +347,11 @@ def _fill_new_tag_data_node(self, tag_data_node, current_selection): if current_selection: if not tp.Dcc.attribute_exists( - node=current_selection, attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME): + node=current_selection, + attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME): tp.Dcc.add_message_attribute( - node=current_selection, attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME) + node=current_selection, + attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME) tp.Dcc.unlock_attribute( node=current_selection, attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME) tp.Dcc.unlock_attribute( diff --git a/artellapipe/tools/tagger/editors/descriptioneditor.py b/artellapipe/tools/tagger/editors/descriptioneditor.py index 135c85c..9f4733b 100644 --- a/artellapipe/tools/tagger/editors/descriptioneditor.py +++ b/artellapipe/tools/tagger/editors/descriptioneditor.py @@ -83,5 +83,6 @@ def fill_tag_node(self, tag_data_node, *args, **kwargs): tp.Dcc.add_string_attribute(node=tag_data_node, attribute_name='description') tp.Dcc.unlock_attribute(node=tag_data_node, attribute_name='description') - tp.Dcc.set_string_attribute_value(node=tag_data_node, attribute_name='description', attribute_value=self._description_text.toPlainText()) + tp.Dcc.set_string_attribute_value( + node=tag_data_node, attribute_name='description', attribute_value=self._description_text.toPlainText()) tp.Dcc.lock_attribute(node=tag_data_node, attribute_name='description') diff --git a/artellapipe/tools/tagger/editors/nameeditor.py b/artellapipe/tools/tagger/editors/nameeditor.py index 4d4443c..3b3e41e 100644 --- a/artellapipe/tools/tagger/editors/nameeditor.py +++ b/artellapipe/tools/tagger/editors/nameeditor.py @@ -85,5 +85,6 @@ def fill_tag_node(self, tag_data_node, *args, **kwargs): tp.Dcc.add_string_attribute(node=tag_data_node, attribute_name='name') tp.Dcc.unlock_attribute(node=tag_data_node, attribute_name='name') - tp.Dcc.set_string_attribute_value(node=tag_data_node, attribute_name='name', attribute_value=self._name_line.text()) + tp.Dcc.set_string_attribute_value( + node=tag_data_node, attribute_name='name', attribute_value=self._name_line.text()) tp.Dcc.lock_attribute(node=tag_data_node, attribute_name='name') diff --git a/artellapipe/tools/tagger/widgets/taggereditor.py b/artellapipe/tools/tagger/widgets/taggereditor.py index cc6d98c..48252de 100644 --- a/artellapipe/tools/tagger/widgets/taggereditor.py +++ b/artellapipe/tools/tagger/widgets/taggereditor.py @@ -57,7 +57,8 @@ def update_tag_buttons_state(self, sel=None): :param sel: list(str) """ - raise NotImplementedError('update_tag_buttons_state() function not implemented in {}'.format(self.__class__.__name__)) + raise NotImplementedError( + 'update_tag_buttons_state() function not implemented in {}'.format(self.__class__.__name__)) @decorators.abstractmethod def fill_tag_node(self, tag_data_node, *args, **kwargs):