Article View: pl.comp.lang.python
Article #28559Zmiana wyswietlanego obrazka
From: Ziggi
Date: Wed, 22 Nov 2017 17:45
Date: Wed, 22 Nov 2017 17:45
32 lines
1473 bytes
1473 bytes
Krotki program majacy na cely wyswietlenie obrazka
-----------------------------------------
from subprocess import call
from tkinter import *
from time import sleep
#call(["aplay", "bell.wav"])
canvas_width = 300
canvas_height =300
master = Tk()
canvas = Canvas(master,
width=canvas_width,
height=canvas_height)
canvas.pack()
img = PhotoImage(file="sport.gif")
canvas.create_image(20,20, anchor=NW, image=img)
mainloop()
------------------------------------------
Mam jednak problem, nie mam pojecia jak sprawic by zmienialy sie
wyswietlane obrazy np co "3s", zapewne uzyc musze sleep(). Niestety
kombinujac nie mam efektow.
--
Pozdrawiam
Ziggy
Technical Details
Message-ID:
<eJiRB.78096$pS7.42065@fx41.am4>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer01.fr7!futter-mich.highwinds-media.com!news.highwinds-media.com!fx41.am4.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer01.fr7!futter-mich.highwinds-media.com!news.highwinds-media.com!fx41.am4.POSTED!not-for-mail Newsgroups: pl.comp.lang.python From: Ziggi <Ziggy@vimuster.you> Subject: Zmiana wyswietlanego obrazka Organization: dm Reply-To: bischoop@gmail.com User-Agent: slrn/1.0.2 (Linux) Lines: 32 Message-ID: <eJiRB.78096$pS7.42065@fx41.am4> X-Complaints-To: http://netreport.virginmedia.com NNTP-Posting-Date: Wed, 22 Nov 2017 17:45:46 UTC Date: Wed, 22 Nov 2017 17:45:46 GMT X-Received-Bytes: 1146 X-Received-Body-CRC: 1902727450 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit