Closing tkinter window without killing PyCharm console

If I do the following, from a normal python console (3.4.2):

    from tkinter import colorchooser
    colorchooser.askcolor()


I can pick a color, click "ok" and the color dialog goes away leaving a "root/parent" window behind. I can close that window normally.
If I do this from withing PyCharm (communauty edition, on Windows 8.1), the "root/parent" window stop responding. Windows gives me the option to close the program which terminates the console process within PyCharm. Is there a way to avoid this (by some special setting within PyCharm perhaps?) and to be able to close such tkinter "root/parent" window?

Please sign in to leave a comment.