mailr19509 - /trunk/gui/analyses/model_list.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on April 20, 2013 - 18:27:
Author: bugman
Date: Sat Apr 20 18:27:40 2013
New Revision: 19509

URL: http://svn.gna.org/viewcvs/relax?rev=19509&view=rev
Log:
The gui.analyses.model_list.Model_list GUI element now can have tooltips via 
the tooltip class variable.


Modified:
    trunk/gui/analyses/model_list.py

Modified: trunk/gui/analyses/model_list.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/model_list.py?rev=19509&r1=19508&r2=19509&view=diff
==============================================================================
--- trunk/gui/analyses/model_list.py (original)
+++ trunk/gui/analyses/model_list.py Sat Apr 20 18:27:40 2013
@@ -54,6 +54,10 @@
     red_flag = False
     """A flag which if True will cause the flag icon to turn red if the 
model list has been modified."""
 
+    tooltip = None
+    """The tooltip string to add to all wx GUI elements."""
+
+
     def __init__(self, parent, box):
         """Build the combo box list widget for a list of list selections.
 
@@ -91,6 +95,12 @@
 
         # Add the button.
         self.button = self.parent.add_button_open(sizer, self.parent, 
icon=paths.icon_16x16.flag_blue, text="Modify", fn=self.modify, 
width=self.parent.width_button, height=label.GetSize()[1]+8)
+
+        # Tooltip.
+        if self.tooltip:
+            label.SetToolTipString(self.tooltip)
+            self.field.SetToolTipString(self.tooltip)
+            self.button.SetToolTipString(self.tooltip)
 
         # Add the contents to the main box.
         box.Add(sizer, 0, wx.ALL|wx.EXPAND, 0)




Related Messages


Powered by MHonArc, Updated Sat Apr 20 18:40:01 2013