Memory exception with Tkinter root.quit

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jane Austine

    Memory exception with Tkinter root.quit

    >>> from Tkinter import *[color=blue][color=green][color=darkred]
    >>> r=Tk()
    >>> b=Button(r,text ='Quit',command =r.quit)
    >>> b.pack()
    >>> r.mainloop()[/color][/color][/color]

    And when I press the "Quit" button the mainloop exits. After that, if
    I finish the python shell, a memory exception occurs.

    This is Windows XP machine with Python 2.3.

    Can anyone see the problem?

    Jane
  • Irmen de Jong

    #2
    Re: Memory exception with Tkinter root.quit

    Jane Austine wrote:[color=blue][color=green][color=darkred]
    >>>>from Tkinter import *
    >>>>r=Tk()
    >>>>b=Button(r, text='Quit',com mand=r.quit)
    >>>>b.pack()
    >>>>r.mainloop( )[/color][/color]
    >
    >
    > And when I press the "Quit" button the mainloop exits. After that, if
    > I finish the python shell, a memory exception occurs.
    >
    > This is Windows XP machine with Python 2.3.[/color]

    Not much of a help, but I've tried it here: no problems...
    (python 2.3.2, win xp). Can it be a Python 2.3.0 issue that
    has been fixed in 2.3.1 or 2.3.2 ?

    --Irmen

    Comment

    Working...