Thanks Federico! This is a new bug in 0.10. I have a fix pending here: https://github.com/pyqtgraph/pyqtgraph/pull/410
On Thu, Jun 9, 2016 at 3:16 PM, Federico Barabas <[email protected]> wrote: > 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 > > -- > 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 [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/pyqtgraph/CAFGKJ93Pp7%2BAfG0XeLdEJdagsEeiS3nOcNT5UaE > tHY5uoOvOJw%40mail.gmail.com > <https://groups.google.com/d/msgid/pyqtgraph/CAFGKJ93Pp7%2BAfG0XeLdEJdagsEeiS3nOcNT5UaEtHY5uoOvOJw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/CACZXET8XgQ9Zmp7FOVJ-%3DgnTgTcqm7dNUkxF%2BqanLScQRE5rUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
