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


Groups > comp.lang.python > #97859

Re: 2.7.9: PhotoImage get/put

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; "'python": 0.07; 'canvas': 0.07; 'global,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.11; '*args)': 0.16; 'crude': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.16; 'am,': 0.23; 'bit': 0.23; 'header :In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; "i'm": 0.30; 'subject:/': 0.30; 'another': 0.32; 'instance': 0.35; 'but': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'doing': 0.38; 'end': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'day': 0.67; 'subject:get': 0.81; 'done:': 0.84; 'post,': 0.84; 'received:fios.verizon.net': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: 2.7.9: PhotoImage get/put
Date Wed, 21 Oct 2015 03:51:21 -0400
References <MPG.309076b1693d9388989686@freenews.netfront.net> <n06f0k$r6g$1@ger.gmane.org> <mailman.66.1445391898.878.python-list@python.org> <MPG.3090e3b0778a0d9c989687@freenews.netfront.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
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 <MPG.3090e3b0778a0d9c989687@freenews.netfront.net>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.71.1445413916.878.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1445413916 news.xs4all.nl 23740 [2001:888:2000:d::a6]:47470
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97859

Show key headers only | View raw


On 10/21/2015 1:50 AM, Randy Day wrote:

> When I read your post, I realized I'm doing
> a crude animation. After a bit of searching
> on 'python canvas animation', I found a
> reference to how it's done:
>
> I made my 'root' Tk instance global, and
> call root.update_idletasks() after the
> .put

I did not see the original post, but the alternative way to animate is 
to use root.after(milliseconds, callback, *args) at the end of callbacks 
to allow the event loop to process other events before re-calling the 
same or another callback.

-- 
Terry Jan Reedy

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


Thread

2.7.9: PhotoImage get/put Randy Day <randy.day@sasktel.netx> - 2015-10-20 16:05 -0600
  Re: 2.7.9: PhotoImage get/put Emile van Sebille <emile@fenx.com> - 2015-10-20 15:25 -0700
    Re: 2.7.9: PhotoImage get/put Randy Day <randy.day@sasktel.netx> - 2015-10-20 23:59 -0600
  Re: 2.7.9: PhotoImage get/put C Smith <illusiontechniques@gmail.com> - 2015-10-20 18:44 -0700
    Re: 2.7.9: PhotoImage get/put Randy Day <randy.day@sasktel.netx> - 2015-10-20 23:50 -0600
      Re: 2.7.9: PhotoImage get/put Terry Reedy <tjreedy@udel.edu> - 2015-10-21 03:51 -0400
        Re: 2.7.9: PhotoImage get/put Randy Day <randy.day@sasktel.netx> - 2015-10-21 09:31 -0600

csiph-web