This is an example Python Plugin for hpp::gui::PythonWidget. Two classes are defined: _NodeCreator and Plugin. Two signals are used: mainWindow.refresh() and osgWidget. Load the widget with:
Then right-click on a tool bar, menu bar or title bar of dock widgets to open your window.