mailr16042 - /branches/uf_redesign/gui/wizard_elements.py


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

Header


Content

Posted by edward on May 07, 2012 - 12:35:
Author: bugman
Date: Mon May  7 12:35:42 2012
New Revision: 16042

URL: http://svn.gna.org/viewcvs/relax?rev=16042&view=rev
Log:
The buttons of the Selector_file wizard page element now have better tooltips.

The open button now has a tooltip related to opening.  The preview button has 
the "Preview" tooltip
rather than the element_file_sel tooltip, so that the user knows what the 
button does.


Modified:
    branches/uf_redesign/gui/wizard_elements.py

Modified: branches/uf_redesign/gui/wizard_elements.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/wizard_elements.py?rev=16042&r1=16041&r2=16042&view=diff
==============================================================================
--- branches/uf_redesign/gui/wizard_elements.py (original)
+++ branches/uf_redesign/gui/wizard_elements.py Mon May  7 12:35:42 2012
@@ -459,6 +459,7 @@
         # The file selection button.
         button = wx.BitmapButton(parent, -1, 
wx.Bitmap(paths.icon_16x16.open, wx.BITMAP_TYPE_ANY))
         button.SetMinSize((parent.height_element, parent.height_element))
+        button.SetToolTipString("Select the file.")
         sub_sizer.Add(button, 0, wx.ADJUST_MINSIZE|wx.ALIGN_CENTER_VERTICAL, 
0)
         parent.Bind(wx.EVT_BUTTON, obj.select_event, button)
 
@@ -475,6 +476,7 @@
             
parent.file_selection_preview_button.append(wx.BitmapButton(parent, -1, 
wx.Bitmap(paths.icon_16x16.document_preview, wx.BITMAP_TYPE_ANY)))
             button = parent.file_selection_preview_button[-1]
             button.SetMinSize((parent.height_element, parent.height_element))
+            button.SetToolTipString("Preview")
             sub_sizer.Add(button, 0, 
wx.ADJUST_MINSIZE|wx.ALIGN_CENTER_VERTICAL, 0)
             parent.Bind(wx.EVT_BUTTON, parent.preview_file, button)
 
@@ -494,9 +496,6 @@
         if tooltip:
             text.SetToolTipString(tooltip)
             self._field.SetToolTipString(tooltip)
-            button.SetToolTipString(tooltip)
-        else:
-            button.SetToolTipString("Select the file.")
 
 
     def Clear(self):




Related Messages


Powered by MHonArc, Updated Mon May 07 13:20:02 2012