Skip to content

Commit d5d814a

Browse files
Jovan MitrevskiJovan Mitrevski
authored andcommitted
update the test to explicitly draw the canvas
1 parent 7cf45ce commit d5d814a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="matplotlib_backend_qtquick",
8-
version="0.0.4",
8+
version="0.0.5",
99
author="Jovan Mitrevski",
1010
author_email="j.p.mitrevski@gmail.com",
1111
description="A QtQuick backend for matplotlib",

tests/testBackend.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
class DisplayBridge(QtCore.QObject):
1616
""" A bridge class to interact with the plot in python
1717
"""
18-
stateChanged = QtCore.Signal()
1918

2019
def __init__(self, parent=None):
2120
super().__init__(parent)
@@ -38,7 +37,7 @@ def updateWithCanvas(self, canvas):
3837
y = np.sin(x)
3938

4039
self.axes.plot(x, y)
41-
self.stateChanged.emit()
40+
canvas.draw_idle()
4241

4342

4443
class TestBackend(unittest.TestCase):

0 commit comments

Comments
 (0)