return "Matplotlib4devs" def icon(self): image = os.path.join(rcParams['datapath'], 'images', 'matplotlib.png') return QIcon(image) def toolTip(self): return "" def whatsThis(self): return "" def isContainer(self): return False def domXml(self): return '<widget class="SvgWidget" name="svgwidget">\n' \ '</widget>\n' def includeFile(self): return "widgets.svgwidget" if __name__ == '__main__': import sys from PyQt4.QtGui import QApplication app = QApplication(sys.argv) widget = SvgWidget() widget.show() sys.exit(app.exec_())