Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup error messages on exit #18

Open
sapi opened this issue Dec 11, 2014 · 0 comments
Open

Cleanup error messages on exit #18

sapi opened this issue Dec 11, 2014 · 0 comments

Comments

@sapi
Copy link
Contributor

sapi commented Dec 11, 2014

When MyPyTutor is exited (using the red x), it prints an absurd amount of crap to stderr:

In [1]: %run code/MyPyTutor.py

In [2]: invalid command name "84072048timer_event"
    while executing
"84072048timer_event"
    ("after" script)
invalid command name "84012768font_timer_event"
    while executing
"84012768font_timer_event"
    ("after" script)

Do you really want to exit ([y]/n)?
Exception ignored in: <bound method MultiCall.__del__ of <idlelib.MultiCall.MultiCallCreator.<locals>.MultiCall object a
t 0x0464E050>>
Traceback (most recent call last):
  File "C:\Python34\lib\idlelib\MultiCall.py", line 413, in __del__
    self.__binders[triplet[1]].unbind(triplet, func)
  File "C:\Python34\lib\idlelib\MultiCall.py", line 102, in unbind
    self.widget.unbind(self.widgetinst, self.sequence, self.handlerid)
  File "C:\Python34\lib\tkinter\__init__.py", line 1092, in unbind
    self.tk.call('bind', self._w, sequence, '')
_tkinter.TclError: can't invoke "bind" command: application has been destroyed
Exception ignored in: <bound method _ComplexBinder.__del__ of <idlelib.MultiCall._ComplexBinder object at 0x0464E090>>
Traceback (most recent call last):
  File "C:\Python34\lib\idlelib\MultiCall.py", line 244, in __del__
    self.widget.unbind(self.widgetinst, seq, id)
  File "C:\Python34\lib\tkinter\__init__.py", line 1092, in unbind
    self.tk.call('bind', self._w, sequence, '')
_tkinter.TclError: can't invoke "bind" command: application has been destroyed
Exception ignored in: <bound method _ComplexBinder.__del__ of <idlelib.MultiCall._ComplexBinder object at 0x0464E0B0>>
Traceback (most recent call last):
  File "C:\Python34\lib\idlelib\MultiCall.py", line 244, in __del__
    self.widget.unbind(self.widgetinst, seq, id)
  File "C:\Python34\lib\tkinter\__init__.py", line 1092, in unbind
    self.tk.call('bind', self._w, sequence, '')
_tkinter.TclError: can't invoke "bind" command: application has been destroyed
Exception ignored in: <bound method _ComplexBinder.__del__ of <idlelib.MultiCall._ComplexBinder object at 0x0464E2D0>>
Traceback (most recent call last):
  File "C:\Python34\lib\idlelib\MultiCall.py", line 244, in __del__
    self.widget.unbind(self.widgetinst, seq, id)
  File "C:\Python34\lib\tkinter\__init__.py", line 1092, in unbind
    self.tk.call('bind', self._w, sequence, '')
_tkinter.TclError: can't invoke "bind" command: application has been destroyed
Exception ignored in: <bound method _ComplexBinder.__del__ of <idlelib.MultiCall._ComplexBinder object at 0x0464E4F0>>
Traceback (most recent call last):
  File "C:\Python34\lib\idlelib\MultiCall.py", line 244, in __del__
    self.widget.unbind(self.widgetinst, seq, id)
  File "C:\Python34\lib\tkinter\__init__.py", line 1092, in unbind
    self.tk.call('bind', self._w, sequence, '')
_tkinter.TclError: can't invoke "bind" command: application has been destroyed
Exception ignored in: <bound method _SimpleBinder.__del__ of <idlelib.MultiCall._SimpleBinder object at 0x0464EA30>>
Traceback (most recent call last):
  File "C:\Python34\lib\idlelib\MultiCall.py", line 109, in __del__
    self.handlerid)
  File "C:\Python34\lib\tkinter\__init__.py", line 1092, in unbind
    self.tk.call('bind', self._w, sequence, '')
_tkinter.TclError: can't invoke "bind" command: application has been destroyed
Exception ignored in: <bound method _SimpleBinder.__del__ of <idlelib.MultiCall._SimpleBinder object at 0x0464EA50>>
Traceback (most recent call last):
  File "C:\Python34\lib\idlelib\MultiCall.py", line 109, in __del__
    self.handlerid)
  File "C:\Python34\lib\tkinter\__init__.py", line 1092, in unbind
    self.tk.call('bind', self._w, sequence, '')
_tkinter.TclError: can't invoke "bind" command: application has been destroyed

This should probably be cleaned up so as to avoid scaring the students.

@sapi sapi added the bug label Dec 11, 2014
@sapi sapi added this to the MyPyTutor 2.1 milestone Dec 12, 2014
@sapi sapi mentioned this issue Feb 4, 2015
@sapi sapi modified the milestones: Future Work, MyPyTutor 3.1 Feb 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant