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


Groups > comp.lang.python > #98072

Re: Multithreading python,two tkinter windows

From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: Multithreading python,two tkinter windows
Date 2015-11-01 18:12 -0500
Message-ID <mailman.42.1446419563.4463.python-list@python.org> (permalink)
References <271f8b42-da03-40fd-8a8b-c562292577e6@googlegroups.com>

Show all headers | View raw


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

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


Thread

Multithreading python,two tkinter windows Vindhyachal Takniki <vindhyachal.takniki@gmail.com> - 2015-11-01 06:05 -0800
  Re: Multithreading python,two tkinter windows Laura Creighton <lac@openend.se> - 2015-11-01 15:26 +0100
  Re: Multithreading python,two tkinter windows Chris Angelico <rosuav@gmail.com> - 2015-11-02 01:31 +1100
  Re: Multithreading python,two tkinter windows Terry Reedy <tjreedy@udel.edu> - 2015-11-01 18:12 -0500

csiph-web