cormorant
2011-04-06 07:05:34 UTC
Hi! I want to move canvas in my program, for example by pressing arrow
keys. The problem is: I write:
self.curvewidget.plot.do_pan_view((0, 300), (0, 0))
where self.curvewidget is CurveWidget itself.
Arguments are "two tuples composed of (initial pos, dest pos)" --
isnt't it?
But result is:
Traceback (most recent call last):
File "./qwtNadv.py", line 581, in test
self.curvewidget.plot.do_pan_view((10,300),(10,10))
File "/usr/local/lib/python2.6/dist-packages/guiqwt/curve.py", line
1025, in do_pan_view
for (x1, x0, _, w), k in active_axes:
ValueError: need more than 2 values to unpack
Thanks in advance
keys. The problem is: I write:
self.curvewidget.plot.do_pan_view((0, 300), (0, 0))
where self.curvewidget is CurveWidget itself.
Arguments are "two tuples composed of (initial pos, dest pos)" --
isnt't it?
But result is:
Traceback (most recent call last):
File "./qwtNadv.py", line 581, in test
self.curvewidget.plot.do_pan_view((10,300),(10,10))
File "/usr/local/lib/python2.6/dist-packages/guiqwt/curve.py", line
1025, in do_pan_view
for (x1, x0, _, w), k in active_axes:
ValueError: need more than 2 values to unpack
Thanks in advance