On 2017-11-22 06:29 AM, Stephen P. Molnar wrote:
I am running Geny v-1.31 from Debian Stretch on my Linux platform.
FOr unknown reasons I have started getting error messages from a Python
3..5 script I wrote to plot multiple curves frlom data generated by a
FORTRAN09 program.
Enter Molecule ID: A
Traceback (most recent call last):
File "MolT_5IMT_w_3_2_plot.py", line 83, in <module>
fig.savefig(name_plt,bbox_inches='tight')
File "/usr/local/lib/python3.5/dist-packages/matplotlib/figure.py",
line 1814, in savefig
self.canvas.print_figure(fname, **kwargs)
File
"/usr/local/lib/python3.5/dist-packages/matplotlib/backend_bases.py",
line 2180, in print_figure
self.figure.dpi = dpi
File "/usr/local/lib/python3.5/dist-packages/matplotlib/figure.py",
line 436, in _set_dpi
self.set_size_inches(w, h, forward=forward)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/figure.py",
line 745, in set_size_inches
manager.resize(int(canvasw), int(canvash))
File
"/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_tkagg.py",
line 540, in resize
self.canvas._tkcanvas.master.geometry("%dx%d" % (width, height))
File "/usr/lib/python3.5/tkinter/__init__.py", line 1698, in wm_geometry
return self.tk.call('wm', 'geometry', self._w, newGeometry)
_tkinter.TclError: can't invoke "wm" command: application has been
destroyed
------------------
(program exited with code: 1)
Press return to continue
Unfortunately, I am an Organic Chemist and not really a Python
programmer and wpuld really appreciate some help in solving this problem.
It's not a Geany related problem, it's something with your code, but
it's hard to say what since you didn't attach/pastebin the code. I
expect based on the error message that you are calling the 'wm' command
after (or before) the tk main window has been created.
Regards,
Matthew Brush
_______________________________________________
Users mailing list
[email protected]
https://lists.geany.org/cgi-bin/mailman/listinfo/users