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


Groups > comp.lang.python > #78192

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'committing': 0.09; 'git': 0.09; 'variable,': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'thread': 0.14; '23,': 0.16; 'ah,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'set,': 0.16; 'subject:user': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'easier': 0.31; 'sep': 0.31; 'though.': 0.31; 'update.': 0.31; 'stuff': 0.32; 'updated': 0.34; 'subject:the': 0.34; 'received:google.com': 0.35; 'easiest': 0.38; 'pm,': 0.38; 'itself': 0.39; 'how': 0.40; 'back': 0.62; 'periodically': 0.68; 'hub': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=1u5Z7LchJjkBZBwDc/MQSyjb2sf9U5aOZLKoKuuY8RE=; b=jRXUOTE8qLmUyGNwAKOAho6BjUv69pEwKw63BERB8KTxf5etLYarKyjYp3dhDxzNMD h9BJMo6BjLsZd/YtROmsEH7uh+h36J6fI5Hp5SJtO+SLypPRkTXOeVzAgaBaLiPLBHaU cOC+NopGZPt9wDjGwSM3EP7oenAxSPqcUoXLtZDQT/0C+q9QZTb6JQdY9Uhk8KRXPSwf uiNgqgBwnLzqDDAYIKhteg/SqmltnNCVQIO/XHIxQA9qWAtn9v62A+j3VqpDuVyOdo2y 02lDy+X0XepFFZfWdLWY56Gqlw6p6Yw0KIXVu0kmjy4gIJOy5JMfHwt6TvcvaDkPV9w3 oacA==
MIME-Version 1.0
X-Received by 10.42.205.19 with SMTP id fo19mr460923icb.52.1411451683018; Mon, 22 Sep 2014 22:54:43 -0700 (PDT)
In-Reply-To <4f95597e-52de-4446-b184-f0e50f698fc5@googlegroups.com>
References <6dffdfb3-82b3-4746-8f39-d6bfa727f439@googlegroups.com> <4f95597e-52de-4446-b184-f0e50f698fc5@googlegroups.com>
Date Tue, 23 Sep 2014 15:54:42 +1000
Subject Re: How to not enable a user to close the root tkinter window
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14241.1411451692.18130.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1411451692 news.xs4all.nl 2978 [2001:888:2000:d::a6]:35059
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78192

Show key headers only | View raw


On Tue, Sep 23, 2014 at 3:49 PM, Nicholas Cannon
<nicholascannon1@gmail.com> wrote:
> The git hub has not actually been updated yet I am working on somethine else then committing the update. How would I stop the threads though. I'am using the Thread from threading function.
>

Ah, okay. (Side point: I recommend committing early and often, it
makes it much easier to go back and look at stuff later.) The easiest
way is to just set a global variable, and then have the thread
periodically check that - once it's set, it shuts itself down.

ChrisA

Back to comp.lang.python | Previous | Next — Previous 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