Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103436

Re: exit from Tkinter mainloop Python 2.7

From Dave Farrance <df@see.replyto.invalid>
Newsgroups comp.lang.python
Subject Re: exit from Tkinter mainloop Python 2.7
Message-ID <jftqcbtm08ds0cfs8bv59qop2kav4ej9kd@4ax.com> (permalink)
References <56e451a3-01f7-4883-b4db-c3a6a10729a9@googlegroups.com>
Organization virginmedia.com
Date 2016-02-24 09:34 +0000

Show all headers | View raw


kevind0718@gmail.com wrote:

>from Tkinter import *
>
>def butContinue():
>    root1.destroy()

As Christian said, you're destroying the root window and its children,
so instead use root1.quit() here.

> ...
>
>root1.mainloop()
>
>print entryName.get("1.0", "end-1c" )
>print entryPWord.get("1.0", "end-1c" )

And your root1.destroy() goes here instead. (The root window would
normally be destroyed on the script exit, but some IDE debuggers will
leave it open.) 

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

exit from Tkinter mainloop  Python 2.7 kevind0718@gmail.com - 2016-02-23 13:39 -0800
  Re: exit from Tkinter mainloop Python 2.7 Christian Gollwitzer <auriocus@gmx.de> - 2016-02-23 23:29 +0100
    Re: exit from Tkinter mainloop Python 2.7 Peter Otten <__peter__@web.de> - 2016-02-23 23:45 +0100
  Re: exit from Tkinter mainloop Python 2.7 Christian Gollwitzer <auriocus@gmx.de> - 2016-02-23 23:33 +0100
    Re: exit from Tkinter mainloop Python 2.7 kevind0718@gmail.com - 2016-03-04 13:50 -0800
      Re: exit from Tkinter mainloop Python 2.7 Peter Otten <__peter__@web.de> - 2016-03-04 23:28 +0100
      Re: exit from Tkinter mainloop Python 2.7 Rick Johnson <rantingrickjohnson@gmail.com> - 2016-03-09 11:17 -0800
  Re: exit from Tkinter mainloop  Python 2.7 Dave Farrance <df@see.replyto.invalid> - 2016-02-24 09:34 +0000

csiph-web