Skip to content

Instantly share code, notes, and snippets.

@dakcarto
Created October 21, 2015 21:04
Show Gist options
  • Save dakcarto/49364dccc0f7760b06da to your computer and use it in GitHub Desktop.
Save dakcarto/49364dccc0f7760b06da to your computer and use it in GitHub Desktop.
from qgis.utils import iface
dbacts = [x for x in iface.databaseMenu().actions() if x.text() == u'DB Manager']
if dbacts:
dbacts[0].menu().actions()[0].trigger()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment