[Qgis-developer] python: problem using QgsMapCanvas.setWheelAction

Andreas Neumann a.neumann at carto.net
Fri Mar 20 12:51:46 EDT 2009


ok - cool. Will test on Monday, when I am back to work ...

Thanks for fixing,
Andreas

On Fri, March 20, 2009 4:55 pm, Martin Dobias wrote:
> On Fri, Mar 20, 2009 at 3:18 PM, Andreas Neumann <a.neumann at carto.net>
wrote:
>> Hi Qgis-Developers,
>>
>> I would like to use QgsMapCanvas.setWheelAction but always get a
AtrributeError or not defined error.
>>
>> Here is what I tried:
>> previewMap.setWheelAction(QgsMapCanvas.WheelZoomToMouseCursor,2)
>>
>> where previewMap is of type QgsMapCanvas
>
> Indeed, someone added functionality of WheelZoomToMouseCursor and
forgotten to add the python binding. Fixed in trunk in r10327.
>
> Martin
>


-- 
Andreas Neumann
http://www.carto.net/neumann/
http://www.svgopen.org/



-- 
Andreas Neumann
http://www.carto.net/neumann/
http://www.svgopen.org/



More information about the Qgis-developer mailing list