473,505 Members | 14,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

prevent an application to be closed by the user

1 New Member
Hi all,
I am making a python script for a university project.
I have created a GUI using a TKinter which allows the user to browse the information contained in a Database.
Since this application has to run for several days and I would like to prevent the user to close (or interact with it) the application by clicking in the top-right "X" .
Any idea???
Thanks a lot
Gian Paolo
Apr 29 '07 #1
1 3014
bartonc
6,596 Recognized Expert Expert
Hi all,
I am making a python script for a university project.
I have created a GUI using a TKinter which allows the user to browse the information contained in a Database.
Since this application has to run for several days and I would like to prevent the user to close (or interact with it) the application by clicking in the top-right "X" .
Any idea???
Thanks a lot
Gian Paolo
In Tkinter, there's a thing call wm.protocol (window manager). The answer depends on your OS, but generally it's not a good idea to have an un-closable GUI hanging around. Popping up a dialog that says "Close this program?" with a choice of whether to proceed or not is semi-tolerable bending of UI rules (im my book).
Apr 30 '07 #2

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

Similar topics

12
2502
by: Dave Smithz | last post by:
Hi there, Users of my PHP DB application have complained that it seems to log them out every now and then. I actually assume this is when it has been idle for sometime as I use session variables...
5
6913
by: Clemens Ortwickler | last post by:
Hello Is it possible with JavaScript to prevent that a User is closing the Internet Explorer? Because it is important for me that the User pushes the cancel Button of this webapplication how can...
11
2519
by: danny | last post by:
Is there a way I can prevent the browser window from being closed? I'd like to make sure the browser window only closes programatically (I want to make sure the user enters data before moving on)....
22
7526
by: alecjames1 | last post by:
I have a form which the user must complete before closing. I have disabled the window x button and use my own exit button. When selected it checks to see if the user has completed the entries...
9
2274
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx)...
2
2418
by: Lauren Wilson | last post by:
Hi folks, I believe I have seen this in this group in the past but my search comes up with nothing so far. I want to prevent our Access application from closing without some kind of...
0
996
by: Nacho | last post by:
Hello people My problem is: My session is 20 min and the cache can be very heavy for each user. The user can be doing many things and after 20 min not using the application, the cache gets...
5
2179
by: NEWSGROUPS | last post by:
I have some users that continuously end task on my database when a search takes to long. In turn corrupting the application. Is there any way to prevent this? The Microsoft KB for Methods That Can...
6
2049
by: Velvet | last post by:
I am developing for a kiosk system. IE is loaded on this sytem and we want to make sure that there is a browser open to our website location at all times. So when the user closes the browser we...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7303
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.