On 2017-11-22 07:53 AM, Stephen P. Molnar wrote:
[...]
host.title.set_text('Molecule: {0} - Molecular Transforms'.format(name))
plt.draw()
plt.show()
#name_plt = name+'-fig1.png'
name_plt = name
fig.savefig(name_plt,bbox_inches='tight')
This is the line causing the exception, presumably because matplotlib
has already cleaned up tk after returning from the .show() call above
once you click the X button on the window.
It works fine here if you move the `fig.savefig()` line before the
`plt.show()` line so it saves the file before the window is destroyed.
Regards,
Matthew Brush
_______________________________________________
Users mailing list
[email protected]
https://lists.geany.org/cgi-bin/mailman/listinfo/users