<html>
  <head>
    <meta content="text/html; charset=iso-8859-15"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    I resolved it.<br>
    <br>
    It was a my bad coding in other point of the program.<br>
    <br>
    The code <br>
    <br>
            for range in renderer.ranges():<br>
                theLabel = range.label()<br>
    <br>
    Instead is perfectly working.<br>
    <br>
    Sorry for noise.<br>
    <br>
    Andrea.<br>
    <br>
    <div class="moz-cite-prefix">Il 01/01/2016 10:14, aperi2007 ha
      scritto:<br>
    </div>
    <blockquote cite="mid:56864381.6080105@gmail.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=iso-8859-15">
      Hi,<br>
      firstly , Happy New Year 2016 to all the QGIS users !!<br>
      <br>
      I need to access to the label of a graduated rendereing using
      python.<br>
      This is the legend I have:<br>
      <br>
      <img src="cid:part1.08000003.03020203@gmail.com" alt=""><br>
      <br>
      To access it I use this kind of code:<br>
      <br>
              for range in renderer.ranges():<br>
                  theLabel = range.label()<br>
      <br>
      But I dont retrieve the values of the various labels (example:
      "<= 50.0", or "50.0 - 200.0")<br>
      but instead i have the string "DP39-2001".<br>
      <br>
      AFAIK "DP39-2001" should be the name of the layer , I don't
      understand why it is accessible in the range.label().<br>
      <br>
      I'm wrong something ?<br>
      <br>
      I'm using QGIS-dev.<br>
      <br>
      Thx,<br>
      <br>
      Andrea Peri.<br>
      <br>
    </blockquote>
    <br>
  </body>
</html>