472,131 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,131 software developers and data experts.

Application window has to be closed for every application execution

440 256MB
Hi,

I have created a Graphical User Interface window using the Tkinter.The application takes three input files and ,it will process the data by creating the temporary files in the input file folders.Once the output data is created ,the application deletes the temporary files which are created in that location ,once the execution of the application completes.

While running the application ,user has to close the Application window every time ,to give the new input files from the window.If the user try to gives the input files with the window already used for execution.The behavior of the application is different,the output file data created by the application is different ( not the expected results).

I would like to know is anybody face the same behavior in executing the application when user creates temporary files and deletes it.

The above behavior is not there in the UNIX OS.

Is this Python limitation in Windows OS,using the Tkinter module?

Thanks
PSB
Jul 4 '07 #1
2 1218
psbasha
440 256MB
Below approach may not be correct suggestion.This may be temporary solution.

When the application is run for first time, and the application window is not killed, and the same window is ready for the next set of input run.Application has to check for the first time run thread and kill it for the next run of the application with different inputs with the same graphical user interface

I would like to know how to kill the thread of the application which is running.

-PSB
Jul 4 '07 #2
bartonc
6,596 Expert 4TB
Below approach may not be correct suggestion.This may be temporary solution.

When the application is run for first time, and the application window is not killed, and the same window is ready for the next set of input run.Application has to check for the first time run thread and kill it for the next run of the application with different inputs with the same graphical user interface

I would like to know how to kill the thread of the application which is running.

-PSB
That sounds about right. You CAN NOT use regular python variables to communicate between the main thread and worker threads. Period. I'm guessing that you have not used "thread safe" methods of giving your worker thread new arguments and you just get lucky that it works on linux.
Jul 4 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Michael Zhang | last post: by
10 posts views Thread by Jeremy Ames | last post: by
2 posts views Thread by Uchiha Jax | last post: by
1 post views Thread by Jack | last post: by
10 posts views Thread by =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post: by
16 posts views Thread by CreativeMind | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.