summaryrefslogtreecommitdiff
path: root/qtdesigner_plugins/plot2dplugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'qtdesigner_plugins/plot2dplugin.py')
-rw-r--r--qtdesigner_plugins/plot2dplugin.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/qtdesigner_plugins/plot2dplugin.py b/qtdesigner_plugins/plot2dplugin.py
index 1a07510..2ec982d 100644
--- a/qtdesigner_plugins/plot2dplugin.py
+++ b/qtdesigner_plugins/plot2dplugin.py
@@ -1,8 +1,7 @@
#!/usr/bin/env python
-# coding: utf-8
# /*##########################################################################
#
-# Copyright (c) 2016 European Synchrotron Radiation Facility
+# Copyright (c) 2016-2021 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -32,9 +31,7 @@ __date__ = "30/05/2016"
from silx.gui import icons, qt
-if qt.BINDING == 'PyQt4':
- from PyQt4 import QtDesigner
-elif qt.BINDING == 'PyQt5':
+if qt.BINDING == "PyQt5":
from PyQt5 import QtDesigner
else:
raise RuntimeError("Unsupport Qt BINDING: %s" % qt.BINDING)
@@ -43,7 +40,6 @@ from silx.gui.plot import Plot2D
class Plot2DPlugin(QtDesigner.QPyDesignerCustomWidgetPlugin):
-
def __init__(self, parent=None):
super(Plot2DPlugin, self).__init__(parent)
self.initialized = False
@@ -69,7 +65,7 @@ class Plot2DPlugin(QtDesigner.QPyDesignerCustomWidgetPlugin):
return "silx"
def icon(self):
- return icons.getQIcon('plot-window-image')
+ return icons.getQIcon("plot-window-image")
def toolTip(self):
return ""