pyqgis_developer_cookbook example calls for xMin() instead of xMinimum() #17836
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Documentation
Changes to Documentation, README, INSTALL, etc
Author Name: Brian Freed (@bfreed)
Original Redmine Issue: 9212
Affected QGIS version: 2.0.1
Redmine category:documentation_and_help
http://www.qgis.org/en/docs/pyqgis_developer_cookbook/canvas.html
In the "Writing Custom Map Tools" example, in the canvasReleaseEvent method definition,
"print "Rectangle:", r.xMin(), r.yMin(), r.xMax(), r.yMax()"
should read:
"print "Rectangle:", r.xMinimum(), r.yMinimum(), r.xMaximum(), r.yMaximum()"
Otherwise, awesome example - thanks so much!
The text was updated successfully, but these errors were encountered: