]> sigrok.org Git - sigrok-meter.git/blobdiff - qtcompat.py
license: remove FSF postal address from boiler plate license text
[sigrok-meter.git] / qtcompat.py
index f5c1f19a5de7b3bc65c98d82ee259d5221278055..6da32cc2e31a047df939ac9e0270b5166862f9ba 100644 (file)
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
 ##
 
+import sys
+
 def load_modules(force_pyside):
     if force_pyside:
         import PySide.QtCore as _QtCore
@@ -50,3 +51,9 @@ def load_modules(force_pyside):
     global QtGui
     QtCore = _QtCore
     QtGui = _QtGui
+
+    import pyqtgraph as _pyqtgraph
+    import pyqtgraph.dockarea as _pyqtgraph_dockarea
+    global pyqtgraph
+    pyqtgraph = _pyqtgraph
+    pyqtgraph.dockarea = _pyqtgraph_dockarea