Bug report #9212
pyqgis_developer_cookbook example calls for xMin() instead of xMinimum()
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | - | ||
Category: | Documentation and Help | ||
Affected QGIS version: | 2.0.1 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 17836 |
Description
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!
History
#1 Updated by Alexander Bruy over 9 years ago
- Resolution set to fixed/implemented
- Status changed from Open to Closed
Fixed in documentation master