Skip to content

Commit 8a9455b

Browse files
committed
Fixed type mismatch issues on Linux
1 parent a95ea4e commit 8a9455b

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# PythonQwt Releases
22

3+
## Version 0.10.2
4+
5+
- Fixed type mismatch issues on Linux
6+
37
## Version 0.10.1
48

59
- Added support for PyQt6.

qwt/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
PythonQwt
99
=========
1010
11-
The ``PythonQwt`` package is a 2D-data plotting library using Qt graphical
12-
user interfaces for the Python programming language. It is compatible with
11+
The ``PythonQwt`` package is a 2D-data plotting library using Qt graphical
12+
user interfaces for the Python programming language. It is compatible with
1313
``PyQt4``, ``PyQt5``, ``PyQt6`` and ``PySide6``.
1414
15-
It consists of a single Python package named `qwt` which is a pure Python
15+
It consists of a single Python package named `qwt` which is a pure Python
1616
implementation of Qwt C++ library with some limitations.
1717
1818
.. image:: /../qwt/tests/data/testlauncher.png
@@ -26,7 +26,7 @@
2626
.. _GitHubPage: http://pierreraybaut.github.io/PythonQwt
2727
.. _GitHub: https://github.com/PierreRaybaut/PythonQwt
2828
"""
29-
__version__ = "0.10.1"
29+
__version__ = "0.10.2"
3030
QWT_VERSION_STR = "6.1.5"
3131

3232
import warnings

qwt/plot_marker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
from qwt.plot import QwtPlot, QwtPlotItem
1717
from qwt.text import QwtText
18-
from qwt.painter import QwtPainter
1918
from qwt.graphic import QwtGraphic
2019
from qwt.symbol import QwtSymbol
2120
from qwt.qthelpers import qcolor_from_str
@@ -239,7 +238,7 @@ def draw(self, painter, xMap, yMap, canvasRect):
239238
)
240239
self.drawLines(painter, canvasRect, pos)
241240
if self.__data.symbol and self.__data.symbol.style() != QwtSymbol.NoSymbol:
242-
sz = self.__data.symbol.size()
241+
sz = self.__data.symbol.size().toSize()
243242
clipRect = QRectF(
244243
canvasRect.adjusted(-sz.width(), -sz.height(), sz.width(), sz.height())
245244
)

qwt/scale_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def draw(self, painter):
423423
):
424424
self.drawColorBar(painter, self.colorBarRect(self.contentsRect()))
425425

426-
r = self.contentsRect()
426+
r = QRectF(self.contentsRect())
427427
if self.__data.scaleDraw.orientation() == Qt.Horizontal:
428428
r.setLeft(r.left() + self.__data.borderDist[0])
429429
r.setWidth(r.width() - self.__data.borderDist[1])

0 commit comments

Comments
 (0)