I made a custom map tool plugin with pygis like this:
class myTool:
def __init__(self, iface):
self.iface = iface
self.canvas = self.iface.mapCanvas()
...
def run(self):
self.mapTool = mapTool(self.canvas)
....
class mapTool(QgsMapToolEmitPoint)
def __init__(self, canvas):
self.canvas = canvas
QgsMapToolEmitPoint.__init__(self, self.canvas)
self.rubberband = QgsRubberBand(self.canvas, QGis.Polygon )
....
And i make some calculations inside the mapTool class and i want to display the results into Qgis status bar, but i haven't found a way to accsess the status bar from the mapTool class because it uses the canvas attribute not the iface attribute.