parameterTree Spinbox bug?

38 views
Skip to first unread message

Federico Barabas

unread,
Jun 9, 2016, 6:16:33 PM6/9/16
to pyqt...@googlegroups.com
Dear all,

I'm using parameters and if, let's say, p is a float (therefore a spinbox widget), whenever I run:

p.setWritable(True)

or

p.setWritable(False)

I get this error: 

Traceback (most recent call last):
  File "C:\WinPython-64bit-3.4.4.1\python-3.4.4.amd64\lib\site-packages\pyqtgraph\parametertree\parameterTypes.py", line 284, in optsChanged
    self.widget.setOpts(**opts)
  File "C:\WinPython-64bit-3.4.4.1\python-3.4.4.amd64\lib\site-packages\pyqtgraph\widgets\SpinBox.py", line 160, in setOpts
    raise TypeError("Invalid keyword argument '%s'." % k)
TypeError: Invalid keyword argument 'readonly'.

But the spinbox responds to the setWritable method correctly nevertheless.

Am I doing something wrong?

Best,
Federico

Luke Campagnola

unread,
Dec 7, 2016, 2:00:03 AM12/7/16
to pyqt...@googlegroups.com
Thanks Federico! This is a new bug in 0.10.

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/CAFGKJ93Pp7%2BAfG0XeLdEJdagsEeiS3nOcNT5UaEtHY5uoOvOJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages