Changeset 092a3d9 in sasview for src/sas/qtgui/Plotter.py
- Timestamp:
- Jan 20, 2017 8:26:35 AM (8 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:
- 03c372d
- Parents:
- 0f3c22d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotter.py
r0f3c22d r092a3d9 28 28 self.plot_dict = {} 29 29 30 # Simple window for data display31 self.txt_widget = QtGui.QTextEdit(None)32 30 # Window for text add 33 31 self.addText = AddText(self) … … 336 334 self.canvas.draw_idle() 337 335 338 def onDataInfo(self, plot_data):339 """340 Displays data info text window for the selected plot341 """342 text_to_show = GuiUtils.retrieveData1d(plot_data)343 # Hardcoded sizes to enable full width rendering with default font344 self.txt_widget.resize(420,600)345 346 self.txt_widget.setReadOnly(True)347 self.txt_widget.setWindowFlags(QtCore.Qt.Window)348 self.txt_widget.setWindowIcon(QtGui.QIcon(":/res/ball.ico"))349 self.txt_widget.setWindowTitle("Data Info: %s" % plot_data.filename)350 self.txt_widget.insertPlainText(text_to_show)351 352 self.txt_widget.show()353 # Move the slider all the way up, if present354 vertical_scroll_bar = self.txt_widget.verticalScrollBar()355 vertical_scroll_bar.triggerAction(QtGui.QScrollBar.SliderToMinimum)356 357 def onSavePoints(self, plot_data):358 """359 Saves plot data to a file360 """361 GuiUtils.saveData1D(plot_data)362 363 336 def onLinearFit(self, id): 364 337 """
Note: See TracChangeset
for help on using the changeset viewer.