Skip to content

Commit

Permalink
Projections: Remove locks from ScatterPlotItem
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Nov 30, 2018
1 parent 9c539ab commit a3444b3
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 a3444b3

Please sign in to comment.