Ignore:
Timestamp:
Jun 23, 2018 2:26:14 PM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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)
Message:

Minor modifications in response to requests during demo session

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/PluginDefinition.py

    r26970b3 rc5e0d84  
    3636        self.addWidgets() 
    3737 
    38     def addWidgets(self): 
     38    def addTooltip(self): 
    3939        """ 
    40         Initialize various widgets in the dialog 
     40        Add the default tooltip to the text field 
    4141        """ 
    42         # Set the tooltip 
    4342        hint_function = "#Example:\n\n" 
    4443        hint_function += "if x <= 0:\n" 
     
    4847        hint_function += "return y\n" 
    4948        self.txtFunction.setToolTip(hint_function) 
     49 
     50    def addWidgets(self): 
     51        """ 
     52        Initialize various widgets in the dialog 
     53        """ 
     54        self.addTooltip() 
     55 
    5056        # Initial text in the function table 
    5157        text = \ 
     
    154160        # keep in mind that this is called every time the text changes. 
    155161        # mind the performance! 
     162        self.addTooltip() 
    156163        self.model['text'] = self.txtFunction.toPlainText().lstrip().rstrip() 
    157164        self.modelModified.emit() 
Note: See TracChangeset for help on using the changeset viewer.