mailr19510 - in /branches/relax_disp: ./ 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:28:
Author: bugman
Date: Sat Apr 20 18:28:10 2013
New Revision: 19510

URL: http://svn.gna.org/viewcvs/relax?rev=19510&view=rev
Log:
Merged revisions 19509 via svnmerge from 
svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk

........
  r19509 | bugman | 2013-04-20 18:27:40 +0200 (Sat, 20 Apr 2013) | 3 lines
  
  The gui.analyses.model_list.Model_list GUI element now can have tooltips 
via the tooltip class variable.
........

Modified:
    branches/relax_disp/   (props changed)
    branches/relax_disp/gui/analyses/model_list.py

Propchange: branches/relax_disp/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Sat Apr 20 18:28:10 2013
@@ -1,1 +1,1 @@
-/trunk:1-19507
+/trunk:1-19509

Modified: branches/relax_disp/gui/analyses/model_list.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/analyses/model_list.py?rev=19510&r1=19509&r2=19510&view=diff
==============================================================================
--- branches/relax_disp/gui/analyses/model_list.py (original)
+++ branches/relax_disp/gui/analyses/model_list.py Sat Apr 20 18:28:10 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