Shows how to add a fancy python widget to the right side bar.
22 from PyQt5
import QtCore, QtGui, QtWidgets
25 panels=gui.GostyApp.Instance().perspective.panels
28 my_awesome_widget = QtWidgets.QWidget()
29 layout = QtWidgets.QVBoxLayout()
30 layout.addWidget(QtWidgets.QPushButton(
'I dont do anything'))
31 layout.addWidget(QtWidgets.QPushButton(
'I do even less'))
32 my_awesome_widget.setLayout(layout)
35 wid=gui.Widget(my_awesome_widget)
38 panels.AddWidgetToPool(
"Widget that doesnt do a thing", wid)
41 panels.AddWidget(gui.PanelPosition.RIGHT_PANEL,wid,
False)