473,378 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 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 1296
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

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

Similar topics

2
by: Michael Zhang | last post by:
My project uses Python-2.3.4 + Tkinter + PIL-1.1.4 to retrieve images from server and display those images. I created a thread (also a separate toplevel window) for displaying images and another...
5
by: Matt Kruse | last post by:
See: http://www.mattkruse.com/temp/window_closed.html It looks like the .closed property of a window is inaccessible if the window is actually closed. Other browsers have no problem detecting...
5
by: GEL | last post by:
Hi, I want to open a new browser window, let the user use that window for several minutes, and when they close, I'd like to change the page displayed in the original window. According to...
10
by: Jeremy Ames | last post by:
I have created a web application that uses a custom control and a web service on my local system. I have gotten all of the bugs worked out on my local system and now it is time to move it to the...
2
by: Uchiha Jax | last post by:
Hi, Recently had an issue with the Audio object from Microsoft.DirectX.AudioVideoPlayback. None of the events were firing from the object during tests (NUnit or Console). Knowing I had it...
1
by: Jack | last post by:
I have a main webpage that has a list of records, each with a link to a window.open function call. As an example, a page that opens is editrecord.aspx?RecordID=34, and another is...
7
by: Jaggu | last post by:
Hi , I need to close main window, once the child window succesfully opens else main window to remain. In my case when I close the main window immediately after the "window.open()" as mentioned...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
16
by: CreativeMind | last post by:
hi, i have a page calendar.aspx which returns selected date i.e window.returnValue=selectedDate; window.close(); it works fine with IE but not for Firefox. i tried...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.