Hi,

You need to use the IPython Console to run your code, but before doing it, please run this command there:

    %gui tk


Cheers,
Carlos

El 25/03/16 a las 12:55, Eric Shain escribió:
Its been several days and no one has commented on my question. Is there a better venue to post this?

Eric

On Monday, March 21, 2016 at 7:16:34 PM UTC-5, Eric Shain wrote:

    Using Spyder2 with Python 3.5 on a Macintosh, I'm having trouble
    with Tk. Specifically I'm trying to use Tk to generate a open file
    dialog. Here is what I type:

    import tkinter as tk
    from tkinter.filedialog import askopenfilename

    root = tk.Tk()

    At this point, everything freezes. I get a little spinning icon
    and I have to force quit. This all works (and more) from a
    separate ipython console but either typed interactively or run
    from a file within spyder, it causes spyder to freeze up.

    Any idea of how to fix this? I should mention I'm using the
    Anaconda installed version of Spyder2.

    Many thanks,

    Eric

--
You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to