Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: Multithreading python,two tkinter windows Date: Sun, 1 Nov 2015 18:12:27 -0500 Lines: 12 Message-ID: References: <271f8b42-da03-40fd-8a8b-c562292577e6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de PePAiTtKURiKDIXmY7GGawmAJ10Q+bTQFa1FelMlw3zw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:two': 0.07; 'block.': 0.09; 'loop.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'thread': 0.10; 'python': 0.10; 'jan': 0.11; 'subject:python': 0.14; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'stuff.': 0.16; 'subject:windows': 0.16; 'thread.': 0.16; 'threads': 0.16; 'wrote:': 0.16; 'gui': 0.18; 'am,': 0.23; 'code,': 0.23; 'header :In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'windows,': 0.29; 'code': 0.30; 'window': 0.30; 'run': 0.33; 'basic': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'things': 0.38; 'stuff': 0.38; 'to:addr:python.org': 0.40; 'different': 0.63; 'subject:skip:M 10': 0.72; 'subject:,': 0.82; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: pool-173-59-124-74.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <271f8b42-da03-40fd-8a8b-c562292577e6@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98072 On 11/1/2015 9:05 AM, Vindhyachal Takniki wrote: > I have made a python code & using multithreading in it. this is very basic code, not using queues & other stuff. You can run multiple windows, or one window with multiple panes, in one thread with one event loop. Best to do gui stuff in the main thread and only use other threads for things that would block. I see that you already know how to use .after to loop. You can have multiple .after loops, with different delays, in one thread. -- Terry Jan Reedy