Re: exit from Tkinter mainloop Python 2.7

2016-03-09 Thread Rick Johnson
On Friday, March 4, 2016 at 3:50:43 PM UTC-6, [email protected] wrote: > Thanks for your attention to this matter. > My code now look like this: [...] All of the help offered in this thread ignores the elephant in the room. What are you trying to achieve here Kevin? To me, this looks like some so

Re: exit from Tkinter mainloop Python 2.7

2016-03-04 Thread Peter Otten
[email protected] wrote: > > > Christian & Others: > > Thanks for your attention to this matter. > My code now look like this: > > from Tkinter import * > > > def butContinue(): > dbUser = entryName.get() Here you set the local variable dbUser (every name you rebind inside a functio

Re: exit from Tkinter mainloop Python 2.7

2016-03-04 Thread kevind0718
Christian & Others: Thanks for your attention to this matter. My code now look like this: from Tkinter import * def butContinue(): dbUser = entryName.get() pWord = entryPWord.get() print dbUser print pWord root1.quit() dbUser = "" pWord = "" root1 = Tk() ##root1.geomet

Re: exit from Tkinter mainloop Python 2.7

2016-02-24 Thread Dave Farrance
[email protected] 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", "

Re: exit from Tkinter mainloop Python 2.7

2016-02-23 Thread Peter Otten
Christian Gollwitzer wrote: > Am 23.02.16 um 22:39 schrieb [email protected]: >> from Tkinter import * >> >> def butContinue(): >> root1.destroy() >> [...] >> entryName = Entry(root1).grid(row=1, column=1, pady=5) >> [...] >> butGo = Button(root1, text=" Continue " , command=butContin

Re: exit from Tkinter mainloop Python 2.7

2016-02-23 Thread Christian Gollwitzer
Am 23.02.16 um 22:39 schrieb [email protected]: lblTop = Label(root1, text= ' Enter Values Below', font="Helvetica 14").grid(row=0, column=0, columnspan=2 , pady=5) ##lblTop.pack(side = TOP) lblDB = Label(root1,text= 'Weight').grid(row=1, column=0 ) lblPWord = Label(root1, text=

Re: exit from Tkinter mainloop Python 2.7

2016-02-23 Thread Christian Gollwitzer
Am 23.02.16 um 22:39 schrieb [email protected]: from Tkinter import * def butContinue(): root1.destroy() [...] entryName = Entry(root1).grid(row=1, column=1, pady=5) [...] butGo = Button(root1, text=" Continue " , command=butContinue ).grid(row=3, column=1, sticky=W, pady=10) root

exit from Tkinter mainloop Python 2.7

2016-02-23 Thread kevind0718
Hello: Newbie here. Spent the a good part of the day tinkering and reading tutorials, I was able to create a sample that is very close to my requirement. When I execute the code below the Dialog displayed as expected and I can enter data into the textboxes. All good. When I click on butGo I

Re: tkinter mainloop

2014-11-20 Thread ast
"Rick Johnson" a écrit dans le message de news:[email protected]... You don't need to call "mainloop()" when building Tkinter widgets on the command-line, but for *real* scripts i believe you'll need to. For instance, if you run the following code you wil

Re: tkinter mainloop

2014-11-19 Thread Rick Johnson
On Wednesday, November 19, 2014 5:23:38 AM UTC-6, Terry Reedy wrote: > On 11/19/2014 3:46 AM, ast wrote: > > mainloop() is a window method which starts the event > > manager which tracks for events (mouse, keyboard ...) to > > be send to the window. But if I forget the > > root.mainloop() in my pro

Re: tkinter mainloop

2014-11-19 Thread Terry Reedy
On 11/19/2014 3:46 AM, ast wrote: Hello mainloop() is a window method which starts the event manager which tracks for events (mouse, keyboard ...) to be send to the window. But if I forget the root.mainloop() in my program, it works well anyway, I cant see any failure. Why ? Second question, i

tkinter mainloop

2014-11-19 Thread ast
Hello mainloop() is a window method which starts the event manager which tracks for events (mouse, keyboard ...) to be send to the window. But if I forget the root.mainloop() in my program, it works well anyway, I cant see any failure. Why ? Second question, is it possible to cancel a main

Re-creating a Tkinter mainloop()

2006-04-17 Thread [EMAIL PROTECTED]
Hi, I am trying to run a Tkinter application in a thread and it works pretty well to an extent. However, when I try to recreate the application after the thread exits, the new application never shows up. The code below the message explains what I am trying. On running this, you should see a simpl

Re: Problem with tkinter mainloop

2004-11-30 Thread k2riddim
Many thanks, You're right this wasn't my code, this was just what I can remember, because my application is at home, and I'm at work. Be sure I'll follow your advices concerning posting rules in this group ! Eric Brunel <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > k2riddim wr

Re: Problem with tkinter mainloop

2004-11-30 Thread Eric Brunel
k2riddim wrote: Hello, I'm a beginner with Python and Tkinter development. My application parse links in an html file. And I use Tkinter to implement a GUI. This GUI has a button to launch the parse treatment, and a status bar to show the state of the treatment. I know that because of the mainloop,

Problem with tkinter mainloop

2004-11-30 Thread k2riddim
Hello, I'm a beginner with Python and Tkinter development. My application parse links in an html file. And I use Tkinter to implement a GUI. This GUI has a button to launch the parse treatment, and a status bar to show the state of the treatment. I know that because of the mainloop, my tkinter appl