mailr12010 - /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 December 28, 2010 - 22:19:
Author: bugman
Date: Tue Dec 28 22:19:07 2010
New Revision: 12010

URL: http://svn.gna.org/viewcvs/relax?rev=12010&view=rev
Log:
Added some debugging lines and text to the about windows, only visible when 
the debug flag is set.


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=12010&r1=12009&r2=12010&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/about.py (original)
+++ branches/bieri_gui/gui_bieri/about.py Tue Dec 28 22:19:07 2010
@@ -22,6 +22,7 @@
 
###############################################################################
 
 # Python module imports.
+import __main__
 from copy import deepcopy
 from numpy import uint8, zeros
 from os import sep
@@ -150,6 +151,21 @@
 
         # Set a background.
         self.set_background()
+
+        # Debugging lines.
+        if __main__.debug:
+            # Cross.
+            self.dc.DrawLine(0, 0, self.virt_x, self.virt_y)
+            self.dc.DrawLine(self.virt_x, 0, 0, self.virt_y)
+
+            # Lines every 200 pixels.
+            num = self.virt_y / 200
+            for i in range(num):
+                pos = i * 200
+                self.dc.DrawLine(0, pos, self.virt_x, pos) 
+                self.dc.SetFont(wx.Font(8, wx.FONTFAMILY_SCRIPT, wx.NORMAL, 
wx.NORMAL))
+                self.dc.DrawText(str(pos), self.virt_x-40, pos-10)
+
 
         # Build the rest of the about widget.
         self.build_widget()




Related Messages


Powered by MHonArc, Updated Tue Dec 28 23:00:02 2010