Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > pl.comp.lang.python > #33
| Newsgroups | pl.comp.lang.python |
|---|---|
| From | Ziggi <Ziggy@vimuster.you> |
| Subject | Zmiana wyswietlanego obrazka |
| Organization | dm |
| Message-ID | <eJiRB.78096$pS7.42065@fx41.am4> (permalink) |
| Date | 2017-11-22 17:45 +0000 |
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
Back to pl.comp.lang.python | Previous | Next — Next in thread | Find similar
Zmiana wyswietlanego obrazka Ziggi <Ziggy@vimuster.you> - 2017-11-22 17:45 +0000
Re: Zmiana wyswietlanego obrazka Roman Tyczka <noemail@because.no> - 2017-11-26 12:34 +0100
Re: Zmiana wyswietlanego obrazka Ziggi <Ziggy@vimuster.you> - 2017-11-27 17:17 +0000
Re: Zmiana wyswietlanego obrazka "AK" <nobody@nowhere.net> - 2017-11-29 01:41 +0100
Re: Zmiana wyswietlanego obrazka Ziggy <Ziggy@Free.net> - 2017-12-09 20:23 +0000
Re: Zmiana wyswietlanego obrazka slawek <fake@fakeemail.com> - 2017-11-28 17:01 +0100
Re: Zmiana wyswietlanego obrazka Ziggy <Ziggy@Free.net> - 2017-12-09 20:21 +0000
csiph-web