Á¤¼ºÈÆ
    ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹)
9-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
55
56
57
58
59
60
from tkinter import *
from tkinter.colorchooser import *
 
window = Tk()
window.title('ĵ¹ö½º¿¡ À̹ÌÁö¸¦ ³Ö°í ±× À§¿¡ ±×¸² ±×¸®±â')
 
= Canvas(window, width=700, height=500)
c.pack()
 
poem_text = '''
³ªÅ ÁÖ
 
±×¸®¿î ³¯Àº ±×¸²À» ±×¸®°í
¾µ¾µÇÑ ³¯Àº À½¾ÇÀ» µé¾ú´Ù
±×¸®°íµµ ³²´Â ³¯Àº
³Ê¸¦ »ý°¢Çؾ߸¸ Çß´Ù
'''
 
mycolor = 'yellow'
 
def poem() :
    c.create_text(100100, anchor=NW, text="»ç´Â ¹ý", fill='yellow', font="±¼¸² 20 bold")
    c.create_text(100120, anchor=NW, text=poem_text, fill='yellow', font="±¼¸² 14 bold")
    
def paint(event) :
    x1, y1 = event.x, event.y
    x2, y2 = event.x+3, event.y+3
    c.create_oval(x1, y1, x2, y2, fill = mycolor, outline = mycolor)
 
def change_color() :
    global mycolor
    color = askcolor()
    mycolor = color[1]
 
def delete() :
    c.delete(ALL)
    c.create_image(00, anchor=NW, image=img)
    poem()
 
def quit() :
    window.destroy()
    
img = PhotoImage(file="¹è°æ.png")
c.create_image(00, anchor=NW, image=img)
 
c.bind("<B1-Motion>", paint)
 
btn1 = Button(window, text='»ö»ó¼±ÅÃ', command=change_color)
btn1.pack()
 
btn2 = Button(window, text='Áö ¿ì ±â', command=delete)
btn2.pack()
 
btn3 = Button(window, text='Á¾·áÇϱâ', command=quit)
btn3.pack()
 
 
poem()
 
window.mainloop()
cs

  µî·ÏÀÏ : 2022-12-10 [02:16] Á¶È¸ : 245 ´Ù¿î : 266   
 
¡â ÀÌÀü±Û(½Ç½À 9) 9Àå tkinter ´Ù¾çÇÑ À§Á¬ <½Ç½À>
¡ä ´ÙÀ½±Û(½Ç½À 8) 8Àå tkinter À̺¥Æ® <½Ç½À>
ÄÚµù ù°ÉÀ½(ºñ°ø´ë) ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ À̸§ Á¶È¸ µî·ÏÀÏ
52 (½Ç½À 9) 9Àå tkinter ´Ù¾çÇÑ À§Á¬ <½Ç½À>¨Õ ½Ç½À Á¤¼ºÈÆ 217 08-19
51 ¦¦❶ ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 245 12-10
50 (½Ç½À 8) 8Àå tkinter À̺¥Æ® <½Ç½À>¨Õ ½Ç½À Á¤¼ºÈÆ 264 08-19
49 ¦¦❶ ¨è ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 276 09-03
48 ¦¦❶ ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 250 09-03
47 ¦¦❶ Űº¸µå <c>¸¦ ´©¸£¸é °í¾çÀ̸¦ º¸¿©ÁÖ°í <d>¸¦ ´©¸£¸é °³¸¦ º¸¿©ÁÖ´Â ... °è¼Ó Á¤¼ºÈÆ 295 12-02
46 (½Ç½À 7) 7Àå tkinter ±âÃÊ <½Ç½À>¨Õ ½Ç½À Á¤¼ºÈÆ 458 08-19
45 ¦¦❶ ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 331 09-03
44    ¦¦❷ ·Î±×ÀΠó¸®ÇÏ´Â ÇÁ·Î±×·¥ °è¼Ó Á¤¼ºÈÆ 337 11-25
43 (½Ç½À 6) 6Àå ÅÍÆ² ±×·¡ÇȰú Űº¸µå À̺¥Æ® <½Ç½À>¨Õ ½Ç½À Á¤¼ºÈÆ 451 08-19
42 ¦¦❶ ¨ç ½Ç½À ÇÁ·Î±×·¥ ¿¹) °è¼Ó Á¤¼ºÈÆ 388 09-03
41 ¦¦❶ °¡À§, ¹ÙÀ§, º¸ À̹ÌÁö¨Õ °è¼Ó Á¤¼ºÈÆ 540 11-11
40    ¦¦❷ »ç¿ëÀÚ°¡ IDLE ¿¡¼­ °¡À§/¹ÙÀ§/º¸¸¦ ¼±ÅÃÇÏ°Ô ÇÏ´Â ÇÁ·Î±×·¥ °è¼Ó Á¤¼ºÈÆ 391 11-18
39       ¦¦❸ »ç¿ëÀÚ°¡ ÅÍÆ² ±×·¡ÇÈ¿¡¼­ °¡À§/¹ÙÀ§/º¸¸¦ ¼±ÅÃÇÏ°Ô ÇÏ´Â ÇÁ·Î±×·¥ °è¼Ó Á¤¼ºÈÆ 390 11-18
38 (½Ç½À 5) 5Àå ÅÍÆ²¿¡¼­ ¸¶¿ì½º À̺¥Æ® ó¸®Çϱâ <½Ç½À>¨Õ ½Ç½À Á¤¼ºÈÆ 463 08-19

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