PyQT QwtScaleDiv constructor does not accept float min and max
Hi, if i do
Code:
ticks = [0,5,10]
div = QwtScaleDiv(float(ticks
[0]),
float(ticks
[len
(ticks
)-1]), ticks
)
i get the following error:
Code:
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'
same happens if I pass int values for min, max. but if i do:
Code:
div.setInterval(ticks[0], ticks[len(ticks)-1])
there is no problem. is this a bug (maybe in SIP?)?
I'm on ubuntu 10.10 (amd 64) using the repo src
Re: PyQT QwtScaleDiv constructor does not accept float min and max
my mistake, I missed:using python one has to know this: http://pyqwt.sourceforge.net/doc5/re...t5.QwtScaleDiv