PlotPyStack / PythonQwt

Qt plotting widgets for Python (pure Python reimplementation of Qwt C++ library)
https://pypi.org/project/PythonQwt/
Other
87 stars 25 forks source link

Unhashable type QFont for `BodeDemo.py` example #1

Closed stonebig closed 9 years ago

stonebig commented 9 years ago

Under python 3.4 / Qt4, I get this error.

  File "basedir34\build\winpython-3.4.3.amd64\python-3.4.3.amd64\lib\site-package\qwt\text_engine.py", line 70, in fontmetrics
    fm = self._fm_cache.get(font)
TypeError: unhashable type: 'QFont'
PierreRaybaut commented 9 years ago

Ok, I'm a totally noob on github so I don't know how to close this automatically but know that it's already fixed. :)

PierreRaybaut commented 9 years ago

Here is the associated commit: https://github.com/PierreRaybaut/qwt/commit/a77dc1bfd86f475f0c49749b3ea45e6bd4b68eb4

PierreRaybaut commented 9 years ago

As it was a critical bug on Python 3 / PyQt4 platforms, I've just released a new version including the bugfix: https://github.com/PierreRaybaut/qwt/releases/tag/v6.1.2alpha3

stonebig commented 9 years ago

thanks !