I'm iterating over a layer with a python-script in QGIS 2.18. I am going to pan to every feature and ask the user a question regarding this feature an do something depending on his answer.
How is it possible to enable user-pan/zoom etc. while QInputDialog waits for an answer ?
Do I have to use other dialogs to be able to pan/zoom while looking for an answer?

```
canvas = qgis.utils.iface.mapCanvas()
pLayer=QgsVectorLayer(r'pathToSHP', "polygonLayer","ogr")
QgsMapLayerRegistry.instance().addMapLayers([pLayer])
for po in pLayer.getFeatures():
    pLayer.select(po.id())
    qgis.utils.iface.actionPanToSelected().trigger()
    pLayer.deselect(po.id())
    checked = False
    while not checked:
        answer=QInputDialog.getText(None,'...','....')
        if answer[0] in ('Y','y'): 
          #doSomething

```