From c08bf6b4ad4b5b3d8e55ffd4f14cfbb511d5c6dc Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 13 Aug 2021 09:57:11 +0200 Subject: [PATCH] added few docstrings --- openpype/tools/settings/settings/base.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/openpype/tools/settings/settings/base.py b/openpype/tools/settings/settings/base.py index 915a408f4e..8235cf8642 100644 --- a/openpype/tools/settings/settings/base.py +++ b/openpype/tools/settings/settings/base.py @@ -32,11 +32,25 @@ class BaseWidget(QtWidgets.QWidget): self.category_widget.set_path(path) def set_focus(self, scroll_to=False): + """Set focus of a widget. + + Args: + scroll_to(bool): Also scroll to widget in category widget. + """ if scroll_to: self.scroll_to(self) self.setFocus() def make_sure_is_visible(self, path, scroll_to): + """Make a widget of entity visible by it's path. + + Args: + path(str): Path to entity. + scroll_to(bool): Should be scrolled to entity. + + Returns: + bool: Entity with path was found. + """ raise NotImplementedError( "{} not implemented `make_sure_is_visible`".format( self.__class__.__name__