Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
loonghao committed Dec 17, 2018
1 parent 64e218f commit 927d4c8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions python/scriptsmenu/launchformari.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ def _mari_main_window():


def _mari_main_menubar():
"""Retrieve the main menubar of the Nuke window"""
nuke_window = _mari_main_window()
"""Get mari main menu bar.
Returns:
Retrieve the main menubar of the Nari window.
"""
mari_window = _mari_main_window()
menubar = [
i for i in nuke_window.children() if isinstance(i, QtWidgets.QMenuBar)
i for i in mari_window.children() if isinstance(i, QtWidgets.QMenuBar)
]
assert len(menubar) == 1, "Error, could not find menu bar!"
return menubar[0]
Expand All @@ -33,7 +38,7 @@ def main(title="Scripts"):
"""Build the main scripts menu in Mari.
Args:
title (str): Name of the menu in the application
title (str): Name of the menu in the application.
Returns:
scriptsmenu.ScriptsMenu: Instance object.
Expand Down

0 comments on commit 927d4c8

Please sign in to comment.