From 45fb4f6d406cf23b895f8f7a39dd33382543b6bb Mon Sep 17 00:00:00 2001 From: Luke Campagnola <> Date: Thu, 1 Mar 2012 22:58:02 -0500 Subject: [PATCH] import corrections --- examples/DataSlicing.py | 2 +- examples/Draw.py | 2 +- examples/GraphicsScene.py | 2 +- examples/ImageItem.py | 4 ++-- examples/ImageView.py | 2 +- examples/ROItypes.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/DataSlicing.py b/examples/DataSlicing.py index 32b9c584..a9e910be 100644 --- a/examples/DataSlicing.py +++ b/examples/DataSlicing.py @@ -6,7 +6,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..')) import numpy as np import scipy -from PyQt4 import QtCore, QtGui +from pyqtgraph.Qt import QtCore, QtGui import pyqtgraph as pg app = QtGui.QApplication([]) diff --git a/examples/Draw.py b/examples/Draw.py index 83736cc4..4c687354 100644 --- a/examples/Draw.py +++ b/examples/Draw.py @@ -4,7 +4,7 @@ import sys, os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..')) -from PyQt4 import QtCore, QtGui +from pyqtgraph.Qt import QtCore, QtGui import numpy as np import pyqtgraph as pg diff --git a/examples/GraphicsScene.py b/examples/GraphicsScene.py index 9720f65b..9fc97876 100644 --- a/examples/GraphicsScene.py +++ b/examples/GraphicsScene.py @@ -3,7 +3,7 @@ import sys, os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..')) -from PyQt4 import QtCore, QtGui +from pyqtgraph.Qt import QtCore, QtGui import pyqtgraph as pg from pyqtgraph.GraphicsScene import GraphicsScene diff --git a/examples/ImageItem.py b/examples/ImageItem.py index 6697e93c..f754a0bc 100644 --- a/examples/ImageItem.py +++ b/examples/ImageItem.py @@ -2,11 +2,11 @@ ## Add path to library (just for examples; you do not need this) import sys, os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..')) -import ptime -from PyQt4 import QtCore, QtGui +from pyqtgraph.Qt import QtCore, QtGui import numpy as np import pyqtgraph as pg +import pyqtgraph.ptime as ptime app = QtGui.QApplication([]) diff --git a/examples/ImageView.py b/examples/ImageView.py index fd1fd8fe..07d296ec 100644 --- a/examples/ImageView.py +++ b/examples/ImageView.py @@ -6,7 +6,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..')) import numpy as np import scipy -from PyQt4 import QtCore, QtGui +from pyqtgraph.Qt import QtCore, QtGui import pyqtgraph as pg app = QtGui.QApplication([]) diff --git a/examples/ROItypes.py b/examples/ROItypes.py index 7649baaa..b7d6b5eb 100644 --- a/examples/ROItypes.py +++ b/examples/ROItypes.py @@ -5,7 +5,7 @@ import sys, os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..')) -from PyQt4 import QtCore, QtGui +from pyqtgraph.Qt import QtCore, QtGui import numpy as np import pyqtgraph as pg