Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #77335
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <albert.visser@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.052 |
| X-Spam-Evidence | '*H*': 0.90; '*S*': 0.00; 'referring': 0.07; 'subject:using': 0.09; 'def': 0.12; 'bind': 0.16; 'client:': 0.16; 'left,': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'skip:p 40': 0.19; 'aug': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'work.': 0.31; 'getting': 0.31; 'skip:m 30': 0.32; 'run': 0.32; 'could': 0.34; "can't": 0.35; 'something': 0.35; 'received:google.com': 0.35; '+0200,': 0.36; 'subject:?': 0.36; 'starting': 0.37; 'button': 0.38; 'displays': 0.38; 'e.g.': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'hope': 0.61; 'helps': 0.61; 'first': 0.61; 'times': 0.62; 'kind': 0.63; 'albert': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=itKCHFr+bLoozCXitUXHaz890pi2+naP/YDZak7F1YY=; b=IWKG4+zdUtS4ktHSFFM5SiMkGFlXt1vuMjvVjxm/m+2ps4T+NJNJ0i1QL485mw2SF5 gjAL9jZr/9xU69uwHticvfh0fA38spmkJ6ZdPxXZI74gZvjn54SrFEkWPstmxUKVhVT4 Z94rH8iX20RSwRsdUW/7twxqz1akg37bLRhVXpLqBrU1Y/z2SkStw0OD0RKwtVlBajBW 3Y6j0mPJ8NhIexwjXmSgmPVb4FdcBPWlTD3nMw6qPt4TirySewalXLu9g13+iU/zkf27 HhjuU4FkG0i8zmlPey09Kpf24uNnj9BJAbaMERsCGBr9PESBz3a/FbGOmoolZ0zNPKLN xuMA== |
| X-Received | by 10.180.92.73 with SMTP id ck9mr12296735wib.54.1409431771561; Sat, 30 Aug 2014 13:49:31 -0700 (PDT) |
| Content-Type | text/plain; charset=utf-8; format=flowed; delsp=yes |
| To | python-list@python.org |
| Subject | Re: Sequencing images using tkinter? |
| References | <dcff98af-47cd-4dbc-9fa1-02dc6813df81@googlegroups.com> <f91837e5-2905-4e4a-b174-159f945de11d@googlegroups.com> |
| Date | Sat, 30 Aug 2014 22:49:29 +0200 |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7bit |
| From | "Albert Visser" <albert.visser@gmail.com> |
| In-Reply-To | <f91837e5-2905-4e4a-b174-159f945de11d@googlegroups.com> |
| User-Agent | Opera Mail/12.16 (Linux) |
| 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.13653.1409433077.18130.python-list@python.org> (permalink) |
| Lines | 31 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1409433077 news.xs4all.nl 2876 [2001:888:2000:d::a6]:46060 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:77335 |
Show key headers only | View raw
On Sat, 30 Aug 2014 22:27:01 +0200, <theteacher.info@gmail.com> wrote:
> Although getting next_image to run for e.g. 10 times in a for loop is
> still something I can't get to work. It only displays one image.
I think this is because you do all your processing befoe starting the
event loop (myGui.mainloop() ).
A better way is to bind the function that displays the images to a button
callback.
Referring to your first post, that could be something like (untested)
def rotate():
for i in range(10):
myImage = PhotoImage(file="MonsterImages/Converted/" +
random.choice(monsters))
myButton1.config(image=myImage, width="100", height="200")
sleep(0.2)
myButton1=Button(canvas1, text='OK', justify = LEFT, command=rotate)
myButton1.place(x=500,y=300)
myGui.mainloop()
Hope this helps
--
Vriendelijke groeten / Kind regards,
Albert Visser
Using Opera's mail client: http://www.opera.com/mail/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sequencing images using tkinter? theteacher.info@gmail.com - 2014-08-30 08:54 -0700
Re: Sequencing images using tkinter? Terry Reedy <tjreedy@udel.edu> - 2014-08-30 15:52 -0400
Re: Sequencing images using tkinter? Peter Otten <__peter__@web.de> - 2014-08-30 21:54 +0200
Re: Sequencing images using tkinter? theteacher.info@gmail.com - 2014-08-30 13:11 -0700
Re: Sequencing images using tkinter? theteacher.info@gmail.com - 2014-08-30 13:27 -0700
Re: Sequencing images using tkinter? "Albert Visser" <albert.visser@gmail.com> - 2014-08-30 22:49 +0200
Re: Sequencing images using tkinter? theteacher.info@gmail.com - 2014-08-30 13:37 -0700
Re: Sequencing images using tkinter? Peter Otten <__peter__@web.de> - 2014-08-30 23:14 +0200
Re: Sequencing images using tkinter? theteacher.info@gmail.com - 2014-08-31 02:51 -0700
csiph-web