mailr10634 - /branches/bieri_gui/gui_bieri/about.py


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

Header


Content

Posted by edward on February 03, 2010 - 18:36:
Author: bugman
Date: Wed Feb  3 18:36:21 2010
New Revision: 10634

URL: http://svn.gna.org/viewcvs/relax?rev=10634&view=rev
Log:
Shifted the GUI to use the program intro text container intro.Intro_text.


Modified:
    branches/bieri_gui/gui_bieri/about.py

Modified: branches/bieri_gui/gui_bieri/about.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/about.py?rev=10634&r1=10633&r2=10634&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/about.py (original)
+++ branches/bieri_gui/gui_bieri/about.py Wed Feb  3 18:36:21 2010
@@ -26,7 +26,7 @@
 import wx
 
 # relax module imports.
-from version import version
+from intro import Intro_text
 
 # relax GUI module imports.
 from paths import IMAGE_PATH
@@ -137,6 +137,9 @@
     def __init__(self, *args, **kwds):
         """Build the dialog."""
 
+        # Initialise the program information container.
+        self.info = Intro_text()
+
         # Execute the base class __init__() method.
         super(About_relax, self).__init__(*args, **kwds)
 
@@ -156,19 +159,16 @@
 
     def draw_description(self):
         """Draw the relax description text."""
-
-        # The text.
-        text = 'Protein dynamics by NMR data analysis'
 
         # Set the font.
         font = wx.Font(12, wx.FONTFAMILY_ROMAN, wx.NORMAL, wx.NORMAL)
         self.dc.SetFont(font)
 
         # The text extent.
-        x, y = self.dc.GetTextExtent(text)
+        x, y = self.dc.GetTextExtent(self.info.desc)
 
         # Draw the text.
-        self.dc.DrawText(text, self.boarder + (self.dim_x - x)/2, 250)
+        self.dc.DrawText(self.info.desc, self.boarder + (self.dim_x - x)/2, 
250)
 
 
     def draw_icon(self):
@@ -182,7 +182,7 @@
         """Draw the relax title with name and version."""
 
         # The text.
-        text = 'relax ' + version
+        text = self.info.title + ' ' + self.info.version
 
         # Set the font.
         font = wx.Font(14, wx.FONTFAMILY_ROMAN, wx.NORMAL, wx.NORMAL)




Related Messages


Powered by MHonArc, Updated Wed Feb 03 19:00:02 2010