Remove outdated comments

This commit is contained in:
Billy Su 2018-04-02 19:26:01 +08:00
parent b421cc2790
commit 42d96d0c21
2 changed files with 0 additions and 19 deletions

View File

@ -356,14 +356,6 @@ class PlotItem(GraphicsWidget):
v = np.clip(alpha, 0, 1)*self.ctrl.gridAlphaSlider.maximum() v = np.clip(alpha, 0, 1)*self.ctrl.gridAlphaSlider.maximum()
self.ctrl.gridAlphaSlider.setValue(v) self.ctrl.gridAlphaSlider.setValue(v)
#def paint(self, *args):
#prof = debug.Profiler()
#QtGui.QGraphicsWidget.paint(self, *args)
## bad idea.
#def __getattr__(self, attr): ## wrap ms
#return getattr(self.vb, attr)
def close(self): def close(self):
#print "delete", self #print "delete", self
## Most of this crap is needed to avoid PySide trouble. ## Most of this crap is needed to avoid PySide trouble.

View File

@ -34,14 +34,3 @@ def test_getViewWidget_deleted():
assert not pg.Qt.isQObjectAlive(view) assert not pg.Qt.isQObjectAlive(view)
assert item.getViewWidget() is None assert item.getViewWidget() is None
#if __name__ == '__main__':
#view = pg.PlotItem()
#vref = weakref.ref(view)
#item = pg.InfiniteLine()
#view.addItem(item)
#del view
#gc.collect()