Salome HOME
Merge remote-tracking branch 'origin/mpa/53156' into V8_1_BR
[modules/gui.git] / tools / CurvePlot / src / python / ui / PlotWidget.py
1 from pyqtside import QtGui
2 from pyqtside.uic import loadUiGen
3 from utils import completeResPath
4
5 class PlotWidget(QtGui.QMainWindow):
6   def __init__(self):
7     QtGui.QMainWindow.__init__(self)
8     loadUiGen(completeResPath("PlotWidget.ui"), self)
9     
10   def clearAll(self):
11     """ In test context, the PlotWidget is never fully deleted (because the PyQt binding
12     of QTabWidget doesn't remove completly the references it holds).
13     So clean up manually. 
14     """
15     self.toolBar = None
16     self.setCentralWidget(None)