Skip to content

Commit

Permalink
Merge pull request #3433 from janezd/remove-locks-from-scatterplotitem
Browse files Browse the repository at this point in the history
Projections: Remove locks from ScatterPlotItem
  • Loading branch information
ales-erjavec authored Dec 3, 2018
2 parents 9c539ab + a3444b3 commit 8f9277c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Orange/widgets/visualize/owscatterplotgraph.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sys
import itertools
import warnings
import threading
from xml.sax.saxutils import escape
from math import log10, floor, ceil

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


class ScatterPlotItem(pg.ScatterPlotItem):
def __init__(self, *args, **kwargs):
self.lock = threading.Lock()
super().__init__(*args, **kwargs)

def paint(self, painter, option, widget=None):
with self.lock:
painter.setRenderHint(QPainter.SmoothPixmapTransform, True)
super().paint(painter, option, widget)
painter.setRenderHint(QPainter.SmoothPixmapTransform, True)
super().paint(painter, option, widget)

def setData(self, *args, **kwargs):
with self.lock:
super().setData(*args ,**kwargs)

def _define_symbols():
"""
Expand Down

0 comments on commit 8f9277c

Please sign in to comment.