pyplugin/pythonwidget.py

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:

gepetto-gui --load-pyplugin pythonwidget.py

Then right-click on a tool bar, menu bar or title bar of dock widgets to open your window.