fixed python2.x print statements
This commit is contained in:
parent
4fad8fa3d2
commit
d33fe05479
@ -39,7 +39,7 @@ def plot():
|
||||
#plt.addItem(item)
|
||||
|
||||
dt = pg.ptime.time() - start
|
||||
print "Create plots took: %0.3fms" % (dt*1000)
|
||||
print("Create plots took: %0.3fms" % (dt*1000))
|
||||
|
||||
## Plot and clear 5 times, printing the time it took
|
||||
for i in range(5):
|
||||
@ -72,7 +72,7 @@ def fastPlot():
|
||||
plt.addItem(item)
|
||||
|
||||
dt = pg.ptime.time() - start
|
||||
print "Create plots took: %0.3fms" % (dt*1000)
|
||||
print("Create plots took: %0.3fms" % (dt*1000))
|
||||
|
||||
|
||||
## Plot and clear 5 times, printing the time it took
|
||||
@ -82,7 +82,7 @@ if hasattr(pg, 'arrayToQPath'):
|
||||
fastPlot()
|
||||
app.processEvents()
|
||||
else:
|
||||
print "Skipping fast tests--arrayToQPath function is missing."
|
||||
print("Skipping fast tests--arrayToQPath function is missing.")
|
||||
|
||||
plt.autoRange()
|
||||
|
||||
|
@ -451,7 +451,7 @@ class ViewBox(GraphicsWidget):
|
||||
if item is None:
|
||||
bounds = self.childrenBoundingRect(items=items)
|
||||
else:
|
||||
print "Warning: ViewBox.autoRange(item=__) is deprecated. Use 'items' argument instead."
|
||||
print("Warning: ViewBox.autoRange(item=__) is deprecated. Use 'items' argument instead.")
|
||||
bounds = self.mapFromItemToView(item, item.boundingRect()).boundingRect()
|
||||
|
||||
if bounds is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user