parameters: (self, draw=True, drawPercent=True, font=None, colour=wx.BLACK, formatString=None)
docstring: Sets whether percentage or current value should be drawn on the gauge for precise indication.
  
          :param bool `draw`: a boolean value, which if ``True`` tells to start drawing value or percentage.
           If set to ``False`` nothing will be drawn and other parameters will be ignored;
          :param bool `drawPercent`: a boolean value which indicates that a percent should be drawn instead
           of value passed in :meth:`SetValue`;
          :param Font `font`: a font with which indication should be drawn, if ``None``, then ``wx.NORMAL_FONT``
           will be used. Usually text would be displayed centered in the control, but if the text font is too large
           to be displayed (either in width or height) the corresponding coordinate will be set to zero;
          :param Colour `colour`: the colour with which indication should be drawn, if ``None`` then ``wx.BLACK`` will be used;
          :param string `formatString`: a string specifying format of the indication (should have one and only one
           number placeholder). If set to ``None``, will use ``{:.0f}`` format string for values and ``{:.0f}%``
           format string for percentages. As described in http://docs.python.org/library/string.html#format-specification-mini-language.
           
          .. note:: `formatString` will override addition of percent sign (after value) even if `drawPercent` is ``True``.
  
          .. versionadded:: 0.9.7
docstring_summary: Sets whether percentage or current value should be drawn on the gauge for precise indication.
docstring_tokens: Sets whether percentage or current value should be drawn on the gauge for precise indication .
function: def SetDrawValue(self, draw=True, drawPercent=True, font=None, colour=wx.BLACK, formatString=None):
          """
          Sets whether percentage or current value should be drawn on the gauge for precise indication.
  
          :param bool `draw`: a boolean value, which if ``True`` tells to start drawing value or percentage.
           If set to ``False`` nothing will be drawn and other parameters will be ignored;
          :param bool `drawPercent`: a boolean value which indicates that a percent should be drawn instead
           of value passed in :meth:`SetValue`;
          :param Font `font`: a font with which indication should be drawn, if ``None``, then ``wx.NORMAL_FONT``
           will be used. Usually text would be displayed centered in the control, but if the text font is too large
           to be displayed (either in width or height) the corresponding coordinate will be set to zero;
          :param Colour `colour`: the colour with which indication should be drawn, if ``None`` then ``wx.BLACK`` will be used;
          :param string `formatString`: a string specifying format of the indication (should have one and only one
           number placeholder). If set to ``None``, will use ``{:.0f}`` format string for values and ``{:.0f}%``
           format string for percentages. As described in http://docs.python.org/library/string.html#format-specification-mini-language.
           
          .. note:: `formatString` will override addition of percent sign (after value) even if `drawPercent` is ``True``.
  
          .. versionadded:: 0.9.7
          """
  
          if not draw:
              # Will not draw anything unless this is True
              self._drawIndicatorText = False
              return
  
          self._drawIndicatorText = True
          self._drawIndicatorText_drawPercent = drawPercent
  
          if font is None or not isinstance(font, wx.Font):
              self._drawIndicatorText_font = wx.NORMAL_FONT
          else:
              self._drawIndicatorText_font = font
  
          if colour is None or not isinstance(colour, wx.Colour):
              self._drawIndicatorText_colour = wx.BLACK
          else:
              self._drawIndicatorText_colour = colour
  
          if formatString is not None:
              error_occurred = True
              try:
                  # This is to test if format string is valid. If not, it will be replaced with default one.
                  formatString.format(12.345)
                  error_occurred = False
              except Exception as e:
                  print "We have exception:%s"%e
                  
              if error_occurred:
                  formatString = None
  
          # Here formatString is either valid formatting string, or None in case of error or None passed
          if formatString is None:
              if self._drawIndicatorText_drawPercent:
                  self._drawIndicatorText_formatString = "{:.0f}%"
              else: self._drawIndicatorText_formatString = "{:.0f}"
          else:
              self._drawIndicatorText_formatString = formatString
function_tokens: def SetDrawValue ( self , draw = True , drawPercent = True , font = None , colour = wx . BLACK , formatString = None ) : if not draw : # Will not draw anything unless this is True self . _drawIndicatorText = False return self . _drawIndicatorText = True self . _drawIndicatorText_drawPercent = drawPercent if font is None or not isinstance ( font , wx . Font ) : self . _drawIndicatorText_font = wx . NORMAL_FONT else : self . _drawIndicatorText_font = font if colour is None or not isinstance ( colour , wx . Colour ) : self . _drawIndicatorText_colour = wx . BLACK else : self . _drawIndicatorText_colour = colour if formatString is not None : error_occurred = True try : # This is to test if format string is valid. If not, it will be replaced with default one. formatString . format ( 12.345 ) error_occurred = False except Exception as e : print "We have exception:%s" % e if error_occurred : formatString = None # Here formatString is either valid formatting string, or None in case of error or None passed if formatString is None : if self . _drawIndicatorText_drawPercent : self . _drawIndicatorText_formatString = "{:.0f}%" else : self . _drawIndicatorText_formatString = "{:.0f}" else : self . _drawIndicatorText_formatString = formatString