Skip to content

Instantly share code, notes, and snippets.

@timlinux
Created March 31, 2013 17:14
Show Gist options
  • Save timlinux/5281330 to your computer and use it in GitHub Desktop.
Save timlinux/5281330 to your computer and use it in GitHub Desktop.
def run_script(iface):
mw = iface.mainWindow()
g = mw.saveGeometry()
s = mw.saveState()
f = file('/tmp/geom.txt', 'wt')
f.write(g)
f.write(s)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment