I don't know why this happen. do you call mainloop() inside the test3.py?? you
shouldn't
Michael Yanowitz [EMAIL PROTECTED] wrote: Presently what happens is
that the script takes over and all the buttons on
the GUI disappear
as the GUI is not given any cpu time to refresh or check
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Mohammad Tayseer
Sent: Monday, December 18, 2006 11:28 AM
To: python-list@python.org
Subject: RE: Can a Tkinter GUI check for abort script:
I don't know why this happen. do you call mainloop() inside the test3
Michael Yanowitz [EMAIL PROTECTED] wrote: What I am hoping for is a
function call I can make, without knowing any
of the GUI objects, I can call from test3.py (or while test3.py is running)
which will refresh the GUI and check for activity such as button presses
on the GUI itself.
Michael Yanowitz wrote:
Hello:
I have successfully implemented a Tkinter GUI which has
this (simplified here for explanation):
+-+
| filename: [./test3.py] |
| |
| [Run Script]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf
Of hg
Sent: Tuesday, December 19, 2006 9:44 AM
To: python-list@python.org
Subject: Re: Can a Tkinter GUI check for abort script:
Michael Yanowitz wrote:
Hello:
I have successfully implemented a Tkinter
Michael Yanowitz top posted (again):
No. test3.py (for example) is just plain Python code that sends and receives
socket data
from another machine. It does (or could) contain loops that last a long time,
repeating
the read or write operations to and from the socket. This grabs the CPU.
What
Hello:
I have successfully implemented a Tkinter GUI which has
this (simplified here for explanation):
+-+
| filename: [./test3.py] |
| |
| [Run Script] |
Michael Yanowitz [EMAIL PROTECTED] Wrote:
Hello:
I have successfully implemented a Tkinter GUI which has
this (simplified here for explanation):
+-+
| filename: [./test3.py] |
| |
| [Run Script]
To view a button hide the other, call .pack_forget() on the button you want
to hide pack() on the button you want to show
test3.py should contains a main() function that returns the new window. if you
press 'Abort script' button you should call new_window.destroy(), pack_forget()
the current
]
[mailto:[EMAIL PROTECTED] Behalf Of
Mohammad Tayseer
Sent: Monday, December 18, 2006 10:40 AM
To: python-list@python.org
Subject: Re: Can a Tkinter GUI check for abort script:
To view a button hide the other, call .pack_forget() on the button you
want to hide pack() on the button you
Michael Yanowitz top posted:
Presently what happens is that the script takes over and all the buttons on
the GUI disappear
as the GUI is not given any cpu time to refresh or check if any activity in the
dialog.
Yuk!
you may have to run the script in a thread then, to preserve the GUI
11 matches
Mail list logo