Skip to content

Commit 5c6e476

Browse files
committed
Fixed Issue #23: "argument numPoints is not implemented" error was showing up
when calling QwtSymbol.drawSymbol(symbol, QPoint(x, y)).
1 parent 688cd99 commit 5c6e476

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
qwt-6.1.2
33
qwt/tests/demo.png
44
python-qwtdoc.chm
5+
doc.zip
56

67
# Created by https://www.gitignore.io/api/python
78

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# History of changes
22

3+
## Version 0.2.1
4+
5+
Fixed Issue #23: "argument numPoints is not implemented" error was showing up
6+
when calling QwtSymbol.drawSymbol(symbol, QPoint(x, y)).
7+
38
## Version 0.2.0
49

510
Added docstrings in all Python modules and a complete documentation based on

qwt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
2222
.. _GitHub: https://github.com/PierreRaybaut/python-qwt
2323
"""
24-
__version__ = '0.2.0'
24+
__version__ = '0.2.1'
2525
QWT_VERSION_STR = '6.1.2'
2626

2727
import warnings

qwt/symbol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ def drawSymbol(self, painter, point_or_rect):
10771077
"""
10781078
if isinstance(point_or_rect, (QPointF, QPoint)):
10791079
# drawSymbol( QPainter *, const QPointF & )
1080-
self.drawSymbols(painter, [point_or_rect], 1)
1080+
self.drawSymbols(painter, [point_or_rect])
10811081
return
10821082
# drawSymbol( QPainter *, const QRectF & )
10831083
rect = point_or_rect

0 commit comments

Comments
 (0)