Pycharm hangs when close application
Answered
I'm pretty new to python so please bare with me when it comes to terminology.
I'm playing around with PyCharm community and Python 3.6, creating a silly little application just to get the feel of the language. Anyway... So I go to close the program with root.quit from a menu link and it hangs pycharm until I manually click the red X on the application gui. Intestingly enough it works fine from command line, closes with no hang.
PyCharm Information:
PyCharm 2018.1.1 (Community Edition)
Build #PC-181.4445.76, built on April 9, 2018
JRE: 1.8.0_152-release-1136-b27 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Actual Code, pretty simple stuff:
# !/usr/bin/python3
from tkinter import *
def donothing():
filewin = Toplevel(root)
button = Button(filewin, text="Do nothing button")
button.pack()
root = Tk()
root.title("Celltron Labor")
root.geometry('1024x768')
menubar = Menu(root)
filemenu = Menu(menubar, tearoff=0)
filemenu.add_command(label="New", command=donothing)
filemenu.add_command(label="Open", command=donothing)
filemenu.add_command(label="Save", command=donothing)
filemenu.add_command(label="Save as...", command=donothing)
filemenu.add_command(label="Close", command=donothing)
filemenu.add_separator()
filemenu.add_command(label="Exit", command=root.quit)
menubar.add_cascade(label="File", menu=filemenu)
editmenu = Menu(menubar, tearoff=0)
editmenu.add_command(label="Undo", command=donothing)
editmenu.add_separator()
editmenu.add_command(label="Cut", command=donothing)
editmenu.add_command(label="Copy", command=donothing)
editmenu.add_command(label="Paste", command=donothing)
editmenu.add_command(label="Delete", command=donothing)
editmenu.add_command(label="Select All", command=donothing)
menubar.add_cascade(label="Edit", menu=editmenu)
helpmenu = Menu(menubar, tearoff=0)
helpmenu.add_command(label="Help Index", command=donothing)
helpmenu.add_command(label="About...", command=donothing)
menubar.add_cascade(label="Help", menu=helpmenu)
root.config(menu=menubar)
root.mainloop()
Any thoughts?
Please sign in to leave a comment.
Hi Jon! Would you mind creating a ticket in our bug tracker https://youtrack.jetbrains.com/issues/PY and attaching zipped log folder from Help | Show Log in ...? I am interested in thread dump subdirectories there.
Hey Pavel, PY29678.. Hopefully I did that right.. first time. :P
Almost, but I got it anyway = ) I created a separate ticket https://youtrack.jetbrains.com/issue/PY-29679 to track the problem feel free to comment there. Do you have any threadDump folders in Help | Show Log in ...?
No sir that was all that was in there..