using Tkinter from IDLE

Discussion in 'Python' started by neutrinman@myrealbox.com, Mar 3, 2005.

  1. Guest

    How do I use Tkinter from IDLE? Tkinter can be used from IDLE attached
    to python 2.2, IDLE 0.8. But I couldn't use from IDLE attached to
    python 2.3, IDLE 1.0.3. When I execute the code below:
    from Tkinter import *
    root = Tk()
    the window appears form IDLE 0.8, but not from IDLE 1.0.3.
    , Mar 3, 2005
    #1
    1. Advertising

  2. Russell Blau Guest

    <> wrote in message
    news:...

    > How do I use Tkinter from IDLE? Tkinter can be used from IDLE attached
    > to python 2.2, IDLE 0.8. But I couldn't use from IDLE attached to
    > python 2.3, IDLE 1.0.3. When I execute the code below:


    > from Tkinter import *
    > root = Tk()


    > the window appears form IDLE 0.8, but not from IDLE 1.0.3.


    Add the line:

    root.mainloop()

    at the end of your code.


    --
    I don't actually read my hotmail account, but you can replace hotmail with
    excite if you really want to reach me.
    Russell Blau, Mar 3, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RT Lange

    2.3 Redhat 9 Tkinter IDLE

    RT Lange, Aug 3, 2003, in forum: Python
    Replies:
    3
    Views:
    381
    Martin v. =?iso-8859-15?q?L=F6wis?=
    Aug 3, 2003
  2. John Hunter

    tkinter idle handler

    John Hunter, Aug 6, 2004, in forum: Python
    Replies:
    1
    Views:
    442
    Michael Hudson
    Aug 6, 2004
  3. Romain FEUILLETTE

    IDLE can't import Tkinter

    Romain FEUILLETTE, May 9, 2007, in forum: Python
    Replies:
    0
    Views:
    1,071
    Romain FEUILLETTE
    May 9, 2007
  4. Romain FEUILLETTE

    Newbie Prob : IDLE can't import Tkinter

    Romain FEUILLETTE, May 10, 2007, in forum: Python
    Replies:
    1
    Views:
    937
    Asun Friere
    May 10, 2007
  5. r
    Replies:
    20
    Views:
    1,082
Loading...

Share This Page