Skip to content

Instantly share code, notes, and snippets.

@timlinux
Created April 13, 2015 10:03
Show Gist options
  • Save timlinux/a57797a6650b10e1dd12 to your computer and use it in GitHub Desktop.
Save timlinux/a57797a6650b10e1dd12 to your computer and use it in GitHub Desktop.
How to know the ide of the current impact function in InaSAFE
from PyQt4.QtGui import QDockWidget
app = iface.mainWindow()
dock = app.findChild(QDockWidget, 'DockBase')
dock.get_function_id()
'VolcanoPolygonPopulationFunction'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment