[Qgis-developer] python: problem using QgsMapCanvas.setWheelAction
Andreas Neumann
a.neumann at carto.net
Fri Mar 20 10:18:56 EDT 2009
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
I also tried
previewMap.setWheelAction(QgsMapCanvas.WheelAction.WheelZoomToMouseCursor,2)
or
previewMap.setWheelAction(WheelAction.WheelZoomToMouseCursor,2)
with no success.
Any idea what would be the correct syntax?
Thanks a lot,
Andreas
--
Andreas Neumann
http://www.carto.net/neumann/
http://www.svgopen.org/
More information about the Qgis-developer
mailing list