mailr14132 - /branches/gui_testing/gui/analyses/results.py


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

Header


Content

Posted by edward on August 04, 2011 - 14:47:
Author: bugman
Date: Thu Aug  4 14:47:22 2011
New Revision: 14132

URL: http://svn.gna.org/viewcvs/relax?rev=14132&view=rev
Log:
The results file viewer 'open' button now has an icon.


Modified:
    branches/gui_testing/gui/analyses/results.py

Modified: branches/gui_testing/gui/analyses/results.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/results.py?rev=14132&r1=14131&r2=14132&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/results.py (original)
+++ branches/gui_testing/gui/analyses/results.py Thu Aug  4 14:47:22 2011
@@ -27,6 +27,7 @@
 # Python module imports.
 from string import upper
 import wx
+from wx.lib import buttons
 
 # relax module imports.
 from data import Relax_data_store; ds = Relax_data_store()
@@ -36,6 +37,7 @@
 from gui.fonts import font
 from gui.icons import relax_icons
 from gui.misc import add_border, gui_to_str, open_file, str_to_gui
+from gui.paths import icon_22x22
 
 
 class Results_viewer(wx.Frame):
@@ -85,11 +87,12 @@
         box_centre.AddSpacer(self.border)
 
         # Add the open button.
-        self.button_open = wx.Button(self, -1, "Open")
+        self.button_open = buttons.ThemedGenBitmapTextButton(self, -1, None, 
" Open")
+        self.button_open.SetBitmapLabel(wx.Bitmap(icon_22x22.document_open, 
wx.BITMAP_TYPE_ANY))
         self.button_open.SetFont(font.normal)
-        self.button_open.SetMinSize((103, 27))
+        self.button_open.SetMinSize((103, 33))
         self.gui.Bind(wx.EVT_BUTTON, self.open_result_file, self.button_open)
-        box_centre.Add(self.button_open, 0, wx.ALIGN_RIGHT, 5)
+        box_centre.Add(self.button_open, 0, 
wx.ALIGN_RIGHT|wx.ADJUST_MINSIZE, 5)
 
         # Bind some events.
         self.Bind(wx.EVT_LEFT_DOWN, self.update_choices, self.analysis_list)




Related Messages


Powered by MHonArc, Updated Thu Aug 04 15:20:02 2011