Changeset c5e0d84 in sasview for src/sas/qtgui/Utilities/PluginDefinition.py
- Timestamp:
- Jun 23, 2018 2:26:14 PM (6 years ago)
- Branches:
- ESS_GUI, 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:
- e20870bc
- Parents:
- 44753d6
- git-author:
- Piotr Rozyczko <rozyczko@…> (06/23/18 14:25:26)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (06/23/18 14:26:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/PluginDefinition.py
r26970b3 rc5e0d84 36 36 self.addWidgets() 37 37 38 def add Widgets(self):38 def addTooltip(self): 39 39 """ 40 Initialize various widgets in the dialog40 Add the default tooltip to the text field 41 41 """ 42 # Set the tooltip43 42 hint_function = "#Example:\n\n" 44 43 hint_function += "if x <= 0:\n" … … 48 47 hint_function += "return y\n" 49 48 self.txtFunction.setToolTip(hint_function) 49 50 def addWidgets(self): 51 """ 52 Initialize various widgets in the dialog 53 """ 54 self.addTooltip() 55 50 56 # Initial text in the function table 51 57 text = \ … … 154 160 # keep in mind that this is called every time the text changes. 155 161 # mind the performance! 162 self.addTooltip() 156 163 self.model['text'] = self.txtFunction.toPlainText().lstrip().rstrip() 157 164 self.modelModified.emit()
Note: See TracChangeset
for help on using the changeset viewer.