Преглед изворни кода

Added doc strings

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48195 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton пре 13 година
родитељ
комит
36edd5c43f
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      gui/wxpython/gui_modules/psmap.py

+ 4 - 0
gui/wxpython/gui_modules/psmap.py

@@ -675,6 +675,9 @@ class PsMapFrame(wx.Frame):
             return wx.Rect(X, Y, abs(W), abs(H)).Inflate(h,h) 
 
     def makePSFont(self, textDict):
+        """!creates a wx.Font object from selected postscript font. To be
+        used for estimating bounding rectangle of text"""
+        
         fontsize = textDict['fontsize'] * self.canvas.currScale
         fontface = textDict['font'].split('-')[0]
         try:
@@ -720,6 +723,7 @@ class PsMapFrame(wx.Frame):
        
        
     def getTextExtent(self, textDict):
+        """!Estimates bounding rectangle of text"""
         #fontsize = str(fontsize if fontsize >= 4 else 4)
         dc = wx.PaintDC(self) # dc created because of method GetTextExtent, which pseudoDC lacks