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

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

Open
zztin opened this issue Aug 13, 2020 · 1 comment
Open

Comments

@zztin
Copy link
Owner

zztin commented Aug 13, 2020

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

  • ctimer version: 5a0e38c
  • Python version: 3.8.3
  • Operating System: macosx 10.14.6

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):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

Add any other context about the problem here.

@tai271828
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants