Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78135

How to not enable a user to close the root tkinter window

Newsgroups comp.lang.python
Date 2014-09-22 04:43 -0700
Message-ID <6dffdfb3-82b3-4746-8f39-d6bfa727f439@googlegroups.com> (permalink)
Subject How to not enable a user to close the root tkinter window
From Nicholas Cannon <nicholascannon1@gmail.com>

Show all headers | View raw


I have a project I am working on(https://github.com/nicodasiko/Article-Grab) which grabs info from the internet then displays it on the screen. It is a multithreaded program so as the function that retrieves the data from the internet there is also another function running in parallel which updates a ttk loading bar. Pretty simple multi threaded stuff. But I found out that the user can close the window whilst the threads are running which generates an error and is not healthy. Is there a way I can make the root tkinter window not close whilst the threads are running. I did this with the search bar and search button. Or can I safely stop the running threads and make them drop everything error free? Any help will be apreciated!

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to not enable a user to close the root tkinter window Nicholas Cannon <nicholascannon1@gmail.com> - 2014-09-22 04:43 -0700
  Re: How to not enable a user to close the root tkinter window Chris Angelico <rosuav@gmail.com> - 2014-09-22 21:56 +1000
  Re: How to not enable a user to close the root tkinter window Nicholas Cannon <nicholascannon1@gmail.com> - 2014-09-22 22:49 -0700
    Re: How to not enable a user to close the root tkinter window Chris Angelico <rosuav@gmail.com> - 2014-09-23 15:54 +1000

csiph-web