Skip to content

TclError is sometimes thrown when closing PyDAT #142

@neivv

Description

@neivv

I have no idea how this happened, and wasn't able to reproduce it, though it had happened before when i checked the mapdata changes (Think it only happened once that time too.) So not sure if this is fixable based on stack trace, or how to narrow it down.

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 1542, in __call__
    return self.func(*args)
  File "C:\Pelei\scbw_yms\Ohjelmia\PyMS\PyMS\PyDAT\PyDAT.py", line 502, in exit
    self.destroy()
  File "C:\Pelei\scbw_yms\Ohjelmia\PyMS\PyMS\Utilities\UIKit\Components\MainWindow.py", line 66, in destroy
    return Tk.destroy(self)
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 1864, in destroy
    for c in self.children.values(): c.destroy()
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 2101, in destroy
    for c in self.children.values(): c.destroy()
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 2101, in destroy
    for c in self.children.values(): c.destroy()
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 2101, in destroy
    for c in self.children.values(): c.destroy()
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 2105, in destroy
    Misc.destroy(self)
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 445, in destroy
    self.tk.deletecommand(name)
TclError: can't delete Tcl command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions