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

Martin Dobias wonder.sk at gmail.com
Fri Mar 20 11:55:47 EDT 2009


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


More information about the Qgis-developer mailing list