zztin / ctimer

This is a python implementation of a famous time management technique. CTimer helps you keep track of your productivity during the day, and help you set realistic goals for your day.
Apache License 2.0
0 stars 1 forks source link

[Tkinter] While double clicking start (due to delay) cause exception #31

Open zztin opened 4 years ago

zztin commented 4 years ago

Description

Exception in Tkinter callback Traceback (most recent call last): File "/Users/Alice/anaconda3/envs/ctimer/lib/python3.8/tkinter/init.py", line 1883, in call return self.func(*args) File "/Users/Alice/current_projects/ctimer/concentratetimer/concentratetimer.py", line 187, in start_pause self.get_goal() File "/Users/Alice/current_projects/ctimer/concentratetimer/concentratetimer.py", line 91, in get_goal self.clock_details.task_description = simpledialog.askstring(title="Set your goals", File "/Users/Alice/anaconda3/envs/ctimer/lib/python3.8/tkinter/simpledialog.py", line 399, in askstring d = _QueryString(title, prompt, *kw) File "/Users/Alice/anaconda3/envs/ctimer/lib/python3.8/tkinter/simpledialog.py", line 376, in init _QueryDialog.init(self, args, **kw) File "/Users/Alice/anaconda3/envs/ctimer/lib/python3.8/tkinter/simpledialog.py", line 271, in init Dialog.init(self, parent, title) File "/Users/Alice/anaconda3/envs/ctimer/lib/python3.8/tkinter/simpledialog.py", line 167, in init self.wait_visibility() File "/Users/Alice/anaconda3/envs/ctimer/lib/python3.8/tkinter/init.py", line 695, in wait_visibility self.tk.call('tkwait', 'visibility', window._w) _tkinter.TclError: window ".!_querystring2" was deleted before its visibility changed

System

Steps to Reproduce

Steps to reproduce the behavior:

  1. Launch ctimer
  2. Click on start, and click again start
  3. Close the first "enter goal" window
  4. Enter your real goal in the second "enter goal" window
  5. check terminal for error message
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Expected Behavior

A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Actual Behavior

What happens actually so you think this is a bug.

More Information

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Add any other context about the problem here.

tai271828 commented 4 years ago

Interesting, I was not aware of this. I will have a look of my error message next time when using ctimer.