Hi, if i do
ticks = [0,5,10]
div = QwtScaleDiv(float(ticks
[0]),
float(ticks
[len
(ticks
)-1]), ticks
)
ticks = [0,5,10]
div = QwtScaleDiv(float(ticks[0]), float(ticks[len(ticks)-1]), ticks)
To copy to clipboard, switch view to plain text mode
i get the following error:
TypeError
: QwtScaleDiv(): arguments did not match any overloaded call
: overload 1: too many arguments
overload 2: argument 1 has unexpected type 'float'
overload 3: not enough arguments
overload 4: argument 1 has unexpected type 'float'
div = QwtScaleDiv(x,y, ticks)
TypeError: QwtScaleDiv(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 1 has unexpected type 'float'
overload 3: not enough arguments
overload 4: argument 1 has unexpected type 'float'
To copy to clipboard, switch view to plain text mode
same happens if I pass int values for min, max. but if i do:
div.setInterval(ticks[0], ticks[len(ticks)-1])
div = QwtScaleDiv()
div.setInterval(ticks[0], ticks[len(ticks)-1])
To copy to clipboard, switch view to plain text mode
there is no problem. is this a bug (maybe in SIP?)?
I'm on ubuntu 10.10 (amd 64) using the repo src
Bookmarks