Changeset b4b8589 in sasview for src/sas/qtgui/PlotterBase.py
- Timestamp:
- Dec 8, 2016 7:53:56 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- fecfe28
- Parents:
- cad617b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/PlotterBase.py
r416fa8f rb4b8589 14 14 DEFAULT_CMAP = pylab.cm.jet 15 15 from sas.qtgui.ScaleProperties import ScaleProperties 16 import sas.qtgui.PlotUtilities as PlotUtilities17 16 import sas.qtgui.PlotHelper as PlotHelper 18 17 … … 50 49 self.qx_data = [] 51 50 self.qy_data = [] 52 self.color =053 self.symbol =051 self.color = 0 52 self.symbol = 0 54 53 self.grid_on = False 55 54 self.scale = 'linear' … … 79 78 @property 80 79 def data(self): 80 """ data getter """ 81 81 return self._data 82 82 … … 158 158 Display the context menu 159 159 """ 160 self.contextMenu.exec_( self.canvas.mapToGlobal(event.pos()))160 self.contextMenu.exec_(self.canvas.mapToGlobal(event.pos())) 161 161 162 162 def clean(self): … … 201 201 dialog.setModal(True) 202 202 dialog.setWindowTitle("Print") 203 if (dialog.exec_() != QtGui.QDialog.Accepted):203 if dialog.exec_() != QtGui.QDialog.Accepted: 204 204 return 205 205 206 206 painter = QtGui.QPainter(printer) 207 # Grab the widget screenshot 208 pmap = QtGui.QPixmap.grabWidget(self) 207 209 # Create a label with pixmap drawn 208 pmap = QtGui.QPixmap.grabWidget(self)209 210 printLabel = QtGui.QLabel() 210 211 printLabel.setPixmap(pmap)
Note: See TracChangeset
for help on using the changeset viewer.