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):
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits