I'm basically borrowing the code for picking up a coordinate from a mouse click from this answer :
How to programatically check for a mouse click in QGIS
However in a stand alone application I do not have access to iface
, so am instead calling the class with :
tool = PointTool(self.map_canvas())
self.map_canvas().setMapTool(tool)
Intellisense finds the map_canvas
ok and it compiles, but I am getting a run time error:
'QgsMapCanvas' object not callable
Any ideas why?