Skip to content

Commit 8f9277c

Browse files
authored
Merge pull request #3433 from janezd/remove-locks-from-scatterplotitem
Projections: Remove locks from ScatterPlotItem
2 parents 9c539ab + a3444b3 commit 8f9277c

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

Orange/widgets/visualize/owscatterplotgraph.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
import itertools
33
import warnings
4-
import threading
54
from xml.sax.saxutils import escape
65
from math import log10, floor, ceil
76

@@ -219,18 +218,10 @@ def __init__(self, scatter_widget, parent=None, _="None", view_box=InteractiveVi
219218

220219

221220
class ScatterPlotItem(pg.ScatterPlotItem):
222-
def __init__(self, *args, **kwargs):
223-
self.lock = threading.Lock()
224-
super().__init__(*args, **kwargs)
225-
226221
def paint(self, painter, option, widget=None):
227-
with self.lock:
228-
painter.setRenderHint(QPainter.SmoothPixmapTransform, True)
229-
super().paint(painter, option, widget)
222+
painter.setRenderHint(QPainter.SmoothPixmapTransform, True)
223+
super().paint(painter, option, widget)
230224

231-
def setData(self, *args, **kwargs):
232-
with self.lock:
233-
super().setData(*args ,**kwargs)
234225

235226
def _define_symbols():
236227
"""

0 commit comments

Comments
 (0)