<div dir="ltr"><div><span style="font-size:12.8px">Grazie Daniele,</span></div><div><span style="font-size:12.8px">ma l'abilitazione delle macro è attiva.</span></div><div><br></div><div><span style="font-size:12.8px">Deve essere proprio una stupidata ma non mi riesce di risolverla.</span></div><div><span style="font-size:12.8px">Buona giornata</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Rocco</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><span style="font-size:12.8px"><div><span style="font-size:12.8px"><br></span></div>Date: Fri, 29 Apr 2016 07:42:47 +0000</span><br style="font-size:12.8px"><span style="font-size:12.8px">From: Samez Daniele <</span><a href="mailto:daniele.samez@regione.fvg.it" style="font-size:12.8px">daniele.samez@regione.fvg.it</a><span style="font-size:12.8px">></span><br style="font-size:12.8px"><span style="font-size:12.8px">To: "</span><a href="mailto:qgis-it-user@lists.osgeo.org" style="font-size:12.8px">qgis-it-user@lists.osgeo.org</a><span style="font-size:12.8px">" <</span><a href="mailto:qgis-it-user@lists.osgeo.org" style="font-size:12.8px">qgis-it-user@lists.osgeo.org</a><span style="font-size:12.8px">></span><br style="font-size:12.8px"><span style="font-size:12.8px">Subject: [QGIS-it-user] QGIS - macro open/save/close project</span><br style="font-size:12.8px"><span style="font-size:12.8px">Message-ID:</span><br style="font-size:12.8px"><span style="font-size:12.8px"> <</span><span style="font-size:12.8px">F1EF0520155D5E4FAB8D42D5F85EAF</span><span style="font-size:12.8px">ADBEC3B9E4@FVG-EMB-03V-TS.</span><span style="font-size:12.8px">UCFVG.hosted></span><br style="font-size:12.8px"><span style="font-size:12.8px">Content-Type: text/plain; charset="iso-8859-1"</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Non ti so dare indicazioni circa la correttezza del codice ma prova a vedere in Impostazioni->Opzioni-></span><span style="font-size:12.8px">Generale-> nel riquadro "File di progetto" quale è l'opzione che ti risulta attiva alla voce "Abilita macro".</span><br style="font-size:12.8px"><span style="font-size:12.8px">Saluti.</span><br style="font-size:12.8px"><div class="gmail_extra"><br><div class="gmail_quote">2016-04-26 14:27 GMT+02:00 Rocco Pispico <span dir="ltr"><<a href="mailto:r.pispico@gmail.com" target="_blank">r.pispico@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Ciao a tutti,<div>prima di aprire un ticket vi chiedo se capita anche a voi.</div><div><br></div><div>Ho impostato il seguente codice in progetto->proprietà->macro ma non fa nulla.</div><div>Vi risulta?</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:Arial;font-size:13.3333px;background-color:rgb(253,253,253)">from qgis.utils import iface</span><br></div><div><div><p style="color:rgb(0,0,0);font-family:Arial;font-size:13.3333px;margin:0px;background-color:rgb(253,253,253)">from qgis.gui import QgsMessageBar</p><p style="color:rgb(0,0,0);font-family:Arial;font-size:13.3333px;margin:0px;background-color:rgb(253,253,253)">def openProject():<br> from qgis.gui import QgsMessageBar<br> iface.messageBar().pushMessage("Error", "I'm sorry Dave, I'm afraid I can't do that", level=QgsMessageBar.CRITICAL, duration=3)</p><p style="color:rgb(0,0,0);font-family:Arial;font-size:13.3333px;margin:0px;background-color:rgb(253,253,253)"><br></p><p style="color:rgb(0,0,0);font-family:Arial;font-size:13.3333px;margin:0px;background-color:rgb(253,253,253)">def saveProject():<br> from qgis.gui import QgsMessageBar<br> iface.messageBar().pushMessage("Info", "info", level=QgsMessageBar.INFO, duration=3)</p><p style="color:rgb(0,0,0);font-family:Arial;font-size:13.3333px;margin:0px;background-color:rgb(253,253,253)"><br></p><p style="color:rgb(0,0,0);font-family:Arial;font-size:13.3333px;margin:0px;background-color:rgb(253,253,253)">def closeProject():<br> from qgis.gui import QgsMessageBar<br> iface.messageBar().pushMessage("SUCCESS", "SUCCESS", level=QgsMessageBar.SUCCESS, duration=3)</p><p style="color:rgb(0,0,0);font-family:Arial;font-size:13.3333px;margin:0px;background-color:rgb(253,253,253)"><br></p><div>Ho testato con il codice con le versioni 2.8.6 (32), 2.12.3 (64) e 2.14.0 (64).</div></div></div><div><br></div><div>Grazie</div></div>
</blockquote></div><br></div></div>