I've solved with my own implementation. A compact ColorPalette custom class was enough to reproduce the logic behind the QgsVectorColorBrewerColorRampV2 and the categories calculation.<div><br></div><div>giovanni<br><br>
<div class="gmail_quote">2013/2/27 G. Allegri <span dir="ltr"><<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I'm trying to emulate with Python in QGis 1.8, the routines as in the categorized renderer widge, to automate the creation of the QgsRendererCategoryV2 list to infalte in a QgsCategorizedSymbolRendererV2.<br></div>

<div>I see that QgsVectorColorBrewerColorRampV2 is missing from SIP bindings. Is there any other mechanism to obtain a set of colors from a palette in Qgis 1.8 Python API?</div><div><br></div><div>Thansk for the help,</div>

<div>giovanni</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Giovanni Allegri</span><br><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">website: </span><a href="http://giovanniallegri.it" target="_blank"><font color="#1155cc" face="arial, sans-serif"><span style>http://g</span></font>iovanniallegri.it</a><div>

<span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">GEO+ </span><font color="#000000" style="font-size:13px;font-family:arial,sans-serif"><span style="line-height:18px">geomatica in Italia </span></font><font face="arial, sans-serif"><span style="line-height:18px"><a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></span></font></div>


</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="background-color:rgb(255,255,255);color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">Giovanni Allegri</span><br><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">website: </span><a href="http://giovanniallegri.it" target="_blank"><font color="#1155cc" face="arial, sans-serif"><span style="background-color:rgb(255,255,255)">http://g</span></font>iovanniallegri.it</a><div>
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">GEO+ </span><font color="#000000" style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="line-height:18px">geomatica in Italia </span></font><font face="arial, sans-serif"><span style="line-height:18px"><a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></span></font></div>

</div>