diff options
Diffstat (limited to 'qtdesigner_plugins/plotwidgetplugin.py')
-rw-r--r-- | qtdesigner_plugins/plotwidgetplugin.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qtdesigner_plugins/plotwidgetplugin.py b/qtdesigner_plugins/plotwidgetplugin.py index f1d0d0b..5760da6 100644 --- a/qtdesigner_plugins/plotwidgetplugin.py +++ b/qtdesigner_plugins/plotwidgetplugin.py @@ -31,7 +31,7 @@ __date__ = "30/05/2016" from silx.gui import qt, icons -if qt.BINDING == 'PyQt5': +if qt.BINDING == "PyQt5": from PyQt5 import QtDesigner else: raise RuntimeError("Unsupport Qt BINDING: %s" % qt.BINDING) @@ -40,7 +40,6 @@ from silx.gui.plot import PlotWidget class PlotWidgetPlugin(QtDesigner.QPyDesignerCustomWidgetPlugin): - def __init__(self, parent=None): super(PlotWidgetPlugin, self).__init__(parent) self.initialized = False @@ -66,7 +65,7 @@ class PlotWidgetPlugin(QtDesigner.QPyDesignerCustomWidgetPlugin): return "silx" def icon(self): - return icons.getQIcon('plot-widget') + return icons.getQIcon("plot-widget") def toolTip(self): return "" |