Á¤¼ºÈÆ
    ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹)
8-1.txt [2 KB]    



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from tkinter import *
 
window = Tk()
window.title('»çÁø ¾Ù¹ü')
window.geometry('500x300')
 
img_idx = 0
 
images = ['cat.png''dog.png''horse.png''rabbit.png']
length = len(images)
 
imgList = []
for image in images :
    img = PhotoImage(file=image)
    imgList.append(img)
    
lbl_img = Label(window, image = imgList[0])
lbl_img.pack()
 
lbl = Label(window, text=images[img_idx], font="¹ÙÅÁ 20 bold")
lbl.place(x=200, y=250)
 
def ShowL() :
    global img_idx
    if img_idx == 0 :
        img_idx = length-1
    else :
        img_idx -= 1
    lbl_img.configure(image=imgList[img_idx])
    lbl.configure(text=images[img_idx])
 
def ShowR() :
    global img_idx    
    if img_idx == length-1 :
        img_idx = 0
    else :
        img_idx += 1
    lbl_img.configure(image=imgList[img_idx])
    lbl.configure(text=images[img_idx])    
 
def KeyEvent(event) :
    if event.char == '<' :
        ShowL()
    elif event.char == '>' :
        ShowR()
 
window.bind("<Key>", KeyEvent)
 
btn1 = Button(window, text='<', command=ShowL)
btn1.place(x=50,y=100)
btn2 = Button(window, text='>', command=ShowR)
btn2.place(x=450,y=100)
 
window.mainloop()
cs

  µî·ÏÀÏ : 2022-09-03 [21:38] Á¶È¸ : 79 ´Ù¿î : 32   
 
¡â ÀÌÀü±Û¨è ½Ç½À ÇÁ·Î±×·¥ ¿¹)
¡ä ´ÙÀ½±ÛÅ°º¸µå <c>¸¦ ´©¸£¸é °í¾çÀ̸¦ º¸¿©ÁÖ°í <d>¸¦ ´©¸£¸é °³¸¦ º¸¿©ÁÖ´Â ÇÁ·Î±×·¥
ÄÚµù ù°ÉÀ½(ºñ°ø´ë) ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ À̸§ Á¶È¸ µî·ÏÀÏ
52 ¨Õ(½Ç½À 9) 9Àå tkinter ´Ù¾çÇÑ À§Á¬ <½Ç½À> ½Ç½À Á¤¼ºÈÆ 109 08-19
51 ¦¦❶ ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 81 12-10
50 ¨Õ(½Ç½À 8) 8Àå tkinter À̺¥Æ® <½Ç½À> ½Ç½À Á¤¼ºÈÆ 143 08-19
49 ¦¦❶ ¨è ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 106 09-03
48 ¦¦❶ ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 79 09-03
47 ¦¦❶ Å°º¸µå <c>¸¦ ´©¸£¸é °í¾çÀ̸¦ º¸¿©ÁÖ°í <d>¸¦ ´©¸£¸é °³¸¦ º¸¿©ÁÖ´Â ... °è¼Ó Á¤¼ºÈÆ 120 12-02
46 ¨Õ(½Ç½À 7) 7Àå tkinter ±âÃÊ <½Ç½À> ½Ç½À Á¤¼ºÈÆ 302 08-19
45 ¦¦❶ ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 161 09-03
44    ¦¦❷ ·Î±×ÀΠó¸®ÇÏ´Â ÇÁ·Î±×·¥ °è¼Ó Á¤¼ºÈÆ 148 11-25
43 ¨Õ(½Ç½À 6) 6Àå ÅÍƲ ±×·¡ÇÈ°ú Å°º¸µå À̺¥Æ® <½Ç½À> ½Ç½À Á¤¼ºÈÆ 308 08-19
42 ¦¦❶ ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 197 09-03
41 ¦¦❶ ¨Õ°¡À§, ¹ÙÀ§, º¸ À̹ÌÁö °è¼Ó Á¤¼ºÈÆ 346 11-11
40    ¦¦❷ »ç¿ëÀÚ°¡ IDLE ¿¡¼­ °¡À§/¹ÙÀ§/º¸¸¦ ¼±ÅÃÇÏ°Ô ÇÏ´Â ÇÁ·Î±×·¥ °è¼Ó Á¤¼ºÈÆ 201 11-18
39       ¦¦❸ »ç¿ëÀÚ°¡ ÅÍƲ ±×·¡ÇÈ¿¡¼­ °¡À§/¹ÙÀ§/º¸¸¦ ¼±ÅÃÇÏ°Ô ÇÏ´Â ÇÁ·Î±×·¥ °è¼Ó Á¤¼ºÈÆ 216 11-18
38 ¨Õ(½Ç½À 5) 5Àå ÅÍƲ¿¡¼­ ¸¶¿ì½º À̺¥Æ® ó¸®Çϱâ <½Ç½À> ½Ç½À Á¤¼ºÈÆ 303 08-19

[1][2][3][4]