Files
o3de/Templates/PythonToolGem/Template/Editor/Scripts/bootstrap.py
T
Chris Galvan e56396a817 Improvements to C++/Python tool gemplates
Signed-off-by: Chris Galvan <chgalvan@amazon.com>
2021-10-28 14:30:14 -05:00

23 lines
961 B
Python

"""
Copyright (c) Contributors to the Open 3D Engine Project.
For complete copyright and license terms please see the LICENSE at the root of this distribution.
SPDX-License-Identifier: Apache-2.0 OR MIT
"""
# -------------------------------------------------------------------------
"""${SanitizedCppName}\\editor\\scripts\\boostrap.py
Generated from O3DE PythonToolGem Template"""
import az_qt_helpers
import azlmbr.editor as editor
from ${NameLower}_dialog import ${SanitizedCppName}Dialog
if __name__ == "__main__":
print("${SanitizedCppName}.boostrap, Generated from O3DE PythonToolGem Template")
# Register our custom widget as a dockable tool with the Editor under an Examples sub-menu
options = editor.ViewPaneOptions()
options.showOnToolsToolbar = True
options.toolbarIcon = ":/${Name}/toolbar_icon.svg"
az_qt_helpers.register_view_pane('${SanitizedCppName}', ${SanitizedCppName}Dialog, category="Examples", options=options)