이예예예예예예예예

Поділитися
Вставка
  • Опубліковано 11 лис 2024

КОМЕНТАРІ • 14

  • @대소비에트연방제국
    @대소비에트연방제국 Рік тому +2

    이채널 주인인데요 이영상은 임의로 제작된것이고 코딩을위한 코딩 저장소 입니다^^

  • @보파
    @보파  2 роки тому

    from tkinter import *
    win=Tk()
    win.option_add("*Font","양재블럭채 50")
    win.geometry("300x500")
    scoer=Entry(win)
    scoer.pack()
    bt1=Button(win)
    bt1.config(text=)
    bt1.pack()
    win.mainloop()

  • @보파
    @보파  Рік тому

    from tkinter import *
    win=Tk()
    import r
    win.geometry("1000x1000")
    win.title("MBTI간단 테스트")
    be=Label(win)
    be.config(text="위 'MBTI 간편 테스트' 는 재미로만 해주시기 바랍니다.")
    be.pack()
    win.option_add("*Font","돋움체 30")
    title=Label(win,text="테스트 시작하기")
    title.place(y=300,x=800)
    frame1 = Frame(win)
    frame2 = Frame(win)
    frame3 = Frame(win)
    frame1.pack()
    def change_frame(close_f, open_f):
    close_f.pack_forget()
    open_f.pack()
    def click_choice(choice, close_f, open_f):
    print(choice)
    change_frame(close_f, open_f)
    def stat(question, close_f, open_f):
    print(1)
    title.place_forget()
    # start1.place_forget()
    ei1=Label(close_f)
    ei1.config(text=question)
    ei1.pack()
    ei1b1 = Button(close_f, text="그렇다.", command=lambda :click_choice("O", close_f, open_f))
    ei1b1.pack()
    ei1b2 = Button(close_f,text="모르겠다.", command=lambda :click_choice("?", close_f, open_f))
    ei1b2.pack()
    ei1b3 = Button(close_f,text="아니다.", command=lambda :click_choice("X", close_f, open_f))
    ei1b3.pack()
    start1=Button(frame1)
    start1.config(text="1. 테스트 시작")
    start1.config(command=lambda : stat("1. 주기적으로 새로운 친구를 만든다.", frame1, frame2))
    start1.pack()
    start2=Button(frame2)
    start2.config(text="2. 테스트 시작")
    start2.config(command=lambda : stat("2. 친구????.", frame2, frame3))
    start2.pack()
    win.mainloop()

  • @보파
    @보파  2 роки тому

    import random
    from tkinter import *
    win=Tk()
    win.geometry("300x300")
    starting_button=Button(win)
    def llaall():
    btn.place(x=100, y=9)
    btn2.place(x=128, y=9)
    btn3.place(x=156, y=9)
    btn4.place(x=100, y=36)
    btn5.place(x=128, y=36)
    btn6.place(x=156, y=36)
    btn7.place(x=100, y=63)
    btn8.place(x=128, y=63)
    btn9.place(x=156, y=63)
    starting_button.pack_forget()
    btn=Button(win)
    btn.config(text=" " )
    def lal():
    bgm_color=random.randint(1,6)
    if bgm_color==1:
    btn.config(bg="red")
    elif bgm_color==2:
    btn.config(bg="blue")
    elif bgm_color==3:
    btn.config(bg="oreng")
    elif bgm_color==4:
    btn.config(bg="green")
    elif bgm_color==5:
    btn.config(bg="white")
    else:
    btn.config(bg="yellow")
    btn.config(command=lal)
    btn.pack()
    btn2=Button(win)
    btn2.config(text=" " )
    def lal():
    btn2.place(x=128, y=9)
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn2.config(bg="red")
    elif bgm_color == 2:
    btn2.config(bg="blue")
    elif bgm_color == 3:
    btn2.config(bg="oreng")
    elif bgm_color == 4:
    btn2.config(bg="green")
    elif bgm_color == 5:
    btn2.config(bg="white")
    else:
    btn2.config(bg="yellow")
    btn2.config(command=lal)
    btn2.pack()
    btn3=Button(win)
    btn3.config(text=" " )
    def lal():
    btn3.place(x=156, y=9)
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn3.config(bg="red")
    elif bgm_color == 2:
    btn3.config(bg="blue")
    elif bgm_color == 3:
    btn3.config(bg="oreng")
    elif bgm_color == 4:
    btn3.config(bg="green")
    elif bgm_color == 5:
    btn3.config(bg="white")
    else:
    btn3.config(bg="yellow")
    btn3.config(command=lal)
    btn3.pack()
    btn4=Button(win)
    btn4.config(text=" " )
    def lal():
    btn4.place(x=100, y=36)
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn4.config(bg="red")
    elif bgm_color == 2:
    btn4.config(bg="blue")
    elif bgm_color == 3:
    btn4.config(bg="oreng")
    elif bgm_color == 4:
    btn4.config(bg="green")
    elif bgm_color == 5:
    btn4.config(bg="white")
    else:
    btn4.config(bg="yellow")
    btn4.config(command=lal)
    btn4.pack()
    btn5=Button(win)
    btn5.config(text=" " )
    def lal():
    btn5.place(x=128, y=36)
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn5.config(bg="red")
    elif bgm_color == 2:
    btn5.config(bg="blue")
    elif bgm_color == 3:
    btn5.config(bg="oreng")
    elif bgm_color == 4:
    btn5.config(bg="green")
    elif bgm_color == 5:
    btn5.config(bg="white")
    else:
    btn5.config(bg="yellow")
    btn5.config(command=lal)
    btn5.pack()
    btn6=Button(win)
    btn6.config(text=" " )
    def lal():
    btn6.place(x=156, y=36)
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn6.config(bg="red")
    elif bgm_color == 2:
    btn6.config(bg="blue")
    elif bgm_color == 3:
    btn6.config(bg="oreng")
    elif bgm_color == 4:
    btn6.config(bg="green")
    elif bgm_color == 5:
    btn6.config(bg="white")
    else:
    btn6.config(bg="yellow")
    btn6.config(command=lal)
    btn6.pack()
    btn7=Button(win)
    btn7.config(text=" " )
    def lal():
    btn7.place(x=100, y=63)
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn7.config(bg="red")
    elif bgm_color == 2:
    btn7.config(bg="blue")
    elif bgm_color == 3:
    btn7.config(bg="oreng")
    elif bgm_color == 4:
    btn7.config(bg="green")
    elif bgm_color == 5:
    btn7.config(bg="white")
    else:
    btn7.config(bg="yellow")
    btn7.config(command=lal)
    btn7.pack()
    btn8=Button(win)
    btn8.config(text=" " )
    def lal():
    btn8.place(x=128, y=63)
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn8.config(bg="red")
    elif bgm_color == 2:
    btn8.config(bg="blue")
    elif bgm_color == 3:
    btn8.config(bg="oreng")
    elif bgm_color == 4:
    btn8.config(bg="green")
    elif bgm_color == 5:
    btn8.config(bg="white")
    else:
    btn8.config(bg="yellow")
    btn8.config(command=lal)
    btn8.pack()
    btn9=Button(win)
    btn9.config(text=" " )
    def lal():
    btn9.place(x=156, y=63)
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn9.config(bg="red")
    elif bgm_color == 2:
    btn9.config(bg="blue")
    elif bgm_color == 3:
    btn9.config(bg="oreng")
    elif bgm_color == 4:
    btn9.config(bg="green")
    elif bgm_color == 5:
    btn9.config(bg="white")
    else:
    btn9.config(bg="yellow")
    btn9.config(command=lal)
    btn9.pack()
    starting_button.config(text="큐브 생성",command=llaall)
    starting_button.pack()
    win.mainloop()

  • @보파
    @보파  Рік тому

    number=""
    from tkinter import *
    win=Tk()
    win.geometry("300x500")
    win.option_add("*Font","안가 30")
    ent=Entry(win)
    ent.insert(0,number)
    ent.pack()
    def bt1(num):
    global number
    ent.insert("end", num)
    b1=Button(win)
    b1.config(text="1")
    b1.config(command=lambda: bt1(1))
    b1.place(x=0,y=100)
    b2=Button(win)
    b2.config(text="2")
    b2.config(command=lambda: bt1(2))
    b2.place(x=60,y=100)
    b3=Button(win)
    b3.config(text="3")
    b3.config(command=lambda: bt1(3))
    b3.place(x=120,y=100)
    b4=Button(win)
    b4.config(text="4")
    b4.config(command=lambda: bt1(4))
    b4.place(x=0,y=170)
    b5=Button(win)
    b5.config(text="5")
    b5.config(command=lambda: bt1(5))
    b5.place(x=60,y=170)
    b6=Button(win)
    b6.config(text="6")
    b6.config(command=lambda: bt1(6))
    b6.place(x=120,y=170)
    b7=Button(win)
    b7.config(text="7")
    b7.config(command=lambda: bt1(7))
    b7.place(x=0,y=240)
    b8=Button(win)
    b8.config(text="8")
    b8.config(command=lambda: bt1(8))
    b8.place(x=60,y=240)
    b9=Button(win)
    b9.config(text="9")
    b9.config(command=lambda: bt1(9))
    b9.place(x=120,y=240)
    b00=Button(win)
    b00.config(text="M 0 0")
    b00.config(command=lambda: bt1(00))
    b00.place(x=-1,y=310)
    b0=Button(win)
    b0.config(text="0")
    b0.config(command=lambda: bt1(0))
    b0.place(x=0,y=310)
    win.mainloop()

  • @보파
    @보파  2 роки тому

    import random
    from tkinter import *
    win=Tk()
    win.geometry("300x300")
    starting_button=Button(win)
    btn=Button(win)
    btn.config(text=" " )
    def llaall():
    starting_button.pack_forget()
    def lal():
    bgm_color=random.randint(1,6)
    if bgm_color==1:
    btn.config(bg="red")
    elif bgm_color==2:
    btn.config(bg="blue")
    elif bgm_color==3:
    btn.config(bg="Orange")
    elif bgm_color==4:
    btn.config(bg="green")
    elif bgm_color==5:
    btn.config(bg="white")
    else:
    btn.config(bg="yellow")
    btn.config(command=lal)
    btn.pack()
    btn2=Button(win)
    btn2.config(text=" " )
    def lal():
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn2.config(bg="red")
    elif bgm_color == 2:
    btn2.config(bg="blue")
    elif bgm_color == 3:
    btn2.config(bg="Orange")
    elif bgm_color == 4:
    btn2.config(bg="green")
    elif bgm_color == 5:
    btn2.config(bg="white")
    else:
    btn2.config(bg="yellow")
    btn2.config(command=lal)
    btn2.pack()
    btn3=Button(win)
    btn3.config(text=" " )
    def lal():
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn3.config(bg="red")
    elif bgm_color == 2:
    btn3.config(bg="blue")
    elif bgm_color == 3:
    btn3.config(bg="Orange")
    elif bgm_color == 4:
    btn3.config(bg="green")
    elif bgm_color == 5:
    btn3.config(bg="white")
    else:
    btn3.config(bg="yellow")
    btn3.config(command=lal)
    btn3.pack()
    btn4=Button(win)
    btn4.config(text=" " )
    def lal():
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn4.config(bg="red")
    elif bgm_color == 2:
    btn4.config(bg="blue")
    elif bgm_color == 3:
    btn4.config(bg="Orange")
    elif bgm_color == 4:
    btn4.config(bg="green")
    elif bgm_color == 5:
    btn4.config(bg="white")
    else:
    btn4.config(bg="yellow")
    btn4.config(command=lal)
    btn4.pack()
    btn5=Button(win)
    btn5.config(text=" " )
    def lal():
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn5.config(bg="red")
    elif bgm_color == 2:
    btn5.config(bg="blue")
    elif bgm_color == 3:
    btn5.config(bg="orange")
    elif bgm_color == 4:
    btn5.config(bg="green")
    elif bgm_color == 5:
    btn5.config(bg="white")
    else:
    btn5.config(bg="yellow")
    btn5.config(command=lal)
    btn5.pack()
    btn6=Button(win)
    btn6.config(text=" " )
    def lal():
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn6.config(bg="red")
    elif bgm_color == 2:
    btn6.config(bg="blue")
    elif bgm_color == 3:
    btn6.config(bg="orange")
    elif bgm_color == 4:
    btn6.config(bg="green")
    elif bgm_color == 5:
    btn6.config(bg="white")
    else:
    btn6.config(bg="yellow")
    btn6.config(command=lal)
    btn6.pack()
    btn7=Button(win)
    btn7.config(text=" " )
    def lal():
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn7.config(bg="red")
    elif bgm_color == 2:
    btn7.config(bg="blue")
    elif bgm_color == 3:
    btn7.config(bg="orange")
    elif bgm_color == 4:
    btn7.config(bg="green")
    elif bgm_color == 5:
    btn7.config(bg="white")
    else:
    btn7.config(bg="yellow")
    btn7.config(command=lal)
    btn7.pack()
    btn8=Button(win)
    btn8.config(text=" " )
    def lal():
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn8.config(bg="red")
    elif bgm_color == 2:
    btn8.config(bg="blue")
    elif bgm_color == 3:
    btn8.config(bg="Orange")
    elif bgm_color == 4:
    btn8.config(bg="green")
    elif bgm_color == 5:
    btn8.config(bg="white")
    else:
    btn8.config(bg="yellow")
    btn8.config(command=lal)
    btn8.pack()
    btn9=Button(win)
    btn9.config(text=" " )
    def lal():
    bgm_color = random.randint(1, 6)
    if bgm_color == 1:
    btn9.config(bg="red")
    elif bgm_color == 2:
    btn9.config(bg="blue")
    elif bgm_color == 3:
    btn9.config(bg="Orange")
    elif bgm_color == 4:
    btn9.config(bg="green")
    elif bgm_color == 5:
    btn9.config(bg="white")
    else:
    btn9.config(bg="yellow")
    btn.place(x=100, y=9)
    btn2.place(x=128, y=9)
    btn3.place(x=156, y=9)
    btn4.place(x=100, y=36)
    btn5.place(x=128, y=36)
    btn6.place(x=156, y=36)
    btn7.place(x=100, y=63)
    btn8.place(x=128, y=63)
    btn9.place(x=156, y=63)
    btn9.config(command=lal)
    btn9.pack()
    starting_button.config(text="큐브 생성",command=llaall)
    starting_button.pack()
    win.mainloop()

  • @보파
    @보파  2 роки тому

    스피드
    list=["바나나","사과","파인애플"]
    from tkinter import *
    import random
    win=Tk()
    win.geometry("1000x300")
    text=Label(win)
    text.config(text="버튼을 클릭하세요!!")
    text.pack()
    btn=Button(win)
    n1=random.randint(0,200)
    n2=random.randint(0,1000)
    btn.config(text="클릭!")
    def btnclick():
    btnn1=btn
    btn.place_forget()
    text.config(text="'1234' 라고 치고 제출하세요!!")
    ent=Entry(win)
    ent.pack()
    btn2=Button(win)
    btn2.config(text="제출")
    def ente():
    entn1=ent.get()
    if entn1=="1234":
    btn2.place_forget()
    ent.pack_forget()
    text.config(text="1부터 4까지 순서대로 클릭하세요!!")
    clicknumber1=random.randint(0,300)
    clicknumber = random.randint(0, 1000)
    click1=Button(win)
    click1.config(text="1")
    click1.place(x=clicknumber,y=clicknumber1)
    clicknumber3 = random.randint(0, 300)
    clicknumber2 = random.randint(0,1000)
    click2 = Button(win)
    click2.config(text="2")
    click2.place(x=clicknumber2,y=clicknumber3)
    clicknumber5 = random.randint(0, 300)
    clicknumber4 = random.randint(0, 1000)
    click3 = Button(win)
    click3.config(text="3")
    click3.place(x=clicknumber4,y=clicknumber5)
    clicknumber7 = random.randint(0, 300)
    clicknumber6 = random.randint(0, 1000)
    click4 = Button(win)
    click4.config(text="4")
    click4.place(x=clicknumber6,y=clicknumber7)
    else:
    print(entn1)
    btn2.config(command=ente)
    btn2.place(x=500,y=40)
    btn.config(command=btnclick)
    btn.place(x=n2,y=n1)
    win.mainloop()

  • @보파
    @보파  2 роки тому

    import random
    btn_click=0
    from tkinter import *
    win=Tk()
    win.geometry("300x300")
    starting_button=Button(win)
    btn=Button(win)
    btn.config(text=" " )
    def lal1():
    global btn_click
    btn_click+=1
    bgm1_color=random.randint(1,6)
    if bgm1_color==1:
    btn.config(bg="red")
    elif bgm1_color==2:
    btn.config(bg="blue")
    elif bgm1_color==3:
    btn.config(bg="Orange")
    elif bgm1_color==4:
    btn.config(bg="green")
    elif bgm1_color==5:
    btn.config(bg="white")
    else:
    btn.config(bg="yellow")
    def llaall():
    global btn_click
    starting_button.pack_forget()
    click_cube=Label(win)
    click_cube.place(y=130,x=105)
    click_cube.config(text="클릭 횟수 : %s" %btn_click)
    btn.config(command=lal1)
    btn.pack()
    btn2=Button(win)
    btn2.config(text=" " )
    def lal2():
    global btn_click
    btn_click += 1
    bgm2_color = random.randint(1, 6)
    if bgm2_color == 1:
    btn2.config(bg="red")
    elif bgm2_color == 2:
    btn2.config(bg="blue")
    elif bgm2_color == 3:
    btn2.config(bg="Orange")
    elif bgm2_color == 4:
    btn2.config(bg="green")
    elif bgm2_color == 5:
    btn2.config(bg="white")
    else:
    btn2.config(bg="yellow")
    btn2.config(command=lal2)
    btn2.pack()
    btn3=Button(win)
    btn3.config(text=" ")
    def lal3():
    global btn_click
    btn_click += 1
    bgm3_color = random.randint(1, 6)
    if bgm3_color == 1:
    btn3.config(bg="red")
    elif bgm3_color == 2:
    btn3.config(bg="blue")
    elif bgm3_color == 3:
    btn3.config(bg="Orange")
    elif bgm3_color == 4:
    btn3.config(bg="green")
    elif bgm3_color == 5:
    btn3.config(bg="white")
    else:
    btn3.config(bg="yellow")
    btn3.config(command=lal3)
    btn3.pack()
    btn4=Button(win)
    btn4.config(text=" ")
    def lal4():
    global btn_click
    btn_click += 1
    bgm4_color = random.randint(1, 6)
    if bgm4_color == 1:
    btn4.config(bg="red")
    elif bgm4_color == 2:
    btn4.config(bg="blue")
    elif bgm4_color == 3:
    btn4.config(bg="Orange")
    elif bgm4_color == 4:
    btn4.config(bg="green")
    elif bgm4_color == 5:
    btn4.config(bg="white")
    else:
    btn4.config(bg="yellow")
    btn4.config(command=lal4)
    btn4.pack()
    btn5=Button(win)
    btn5.config(text=" ")
    def lal5():
    global btn_click
    btn_click += 1
    bgm5_color = random.randint(1, 6)
    if bgm5_color == 1:
    btn5.config(bg="red")
    elif bgm5_color == 2:
    btn5.config(bg="blue")
    elif bgm5_color == 3:
    btn5.config(bg="orange")
    elif bgm5_color == 4:
    btn5.config(bg="green")
    elif bgm5_color == 5:
    btn5.config(bg="white")
    else:
    btn5.config(bg="yellow")
    btn5.config(command=lal5)
    btn5.pack()
    btn6=Button(win)
    btn6.config(text=" ")
    def lal6():
    global btn_click
    btn_click += 1
    bgm6_color = random.randint(1, 6)
    if bgm6_color == 1:
    btn6.config(bg="red")
    elif bgm6_color == 2:
    btn6.config(bg="blue")
    elif bgm6_color == 3:
    btn6.config(bg="orange")
    elif bgm6_color == 4:
    btn6.config(bg="green")
    elif bgm6_color == 5:
    btn6.config(bg="white")
    else:
    btn6.config(bg="yellow")
    btn6.config(command=lal6)
    btn6.pack()
    btn7=Button(win)
    btn7.config(text=" ")
    def lal7():
    global btn_click
    btn_click += 1
    bgm7_color = random.randint(1, 6)
    if bgm7_color == 1:
    btn7.config(bg="red")
    elif bgm7_color == 2:
    btn7.config(bg="blue")
    elif bgm7_color == 3:
    btn7.config(bg="orange")
    elif bgm7_color == 4:
    btn7.config(bg="green")
    elif bgm7_color == 5:
    btn7.config(bg="white")
    else:
    btn7.config(bg="yellow")
    btn7.config(command=lal7)
    btn7.pack()
    btn8=Button(win)
    btn8.config(text=" ")
    def lal8():
    global btn_click
    btn_click += 1
    bgm8_color = random.randint(1, 6)
    if bgm8_color == 1:
    btn8.config(bg="red")
    elif bgm8_color == 2:
    btn8.config(bg="blue")
    elif bgm8_color == 3:
    btn8.config(bg="Orange")
    elif bgm8_color == 4:
    btn8.config(bg="green")
    elif bgm8_color == 5:
    btn8.config(bg="white")
    else:
    btn8.config(bg="yellow")
    btn8.config(command=lal8)
    btn8.pack()
    btn9=Button(win)
    btn9.config(text=" ")
    def lal9():
    global btn_click
    btn_click += 1
    bgm9_color = random.randint(1, 6)
    if bgm9_color == 1:
    btn9.config(bg="red")
    elif bgm9_color == 2:
    btn9.config(bg="blue")
    elif bgm9_color == 3:
    btn9.config(bg="Orange")
    elif bgm9_color == 4:
    btn9.config(bg="green")
    elif bgm9_color == 5:
    btn9.config(bg="white")
    else:
    btn9.config(bg="yellow")
    btn9.config(command=lal9)
    btn9.pack()
    btn.place(x=100, y=9)
    btn2.place(x=128, y=9)
    btn3.place(x=156, y=9)
    btn4.place(x=100, y=36)
    btn5.place(x=128, y=36)
    btn6.place(x=156, y=36)
    btn7.place(x=100, y=63)
    btn8.place(x=128, y=63)
    btn9.place(x=156, y=63)
    starting_button.config(text="큐브 생성",command=llaall)
    starting_button.pack()
    win.mainloop()
    d

  • @보파
    @보파  2 роки тому

    import random
    btn_click=0
    from tkinter import *
    win=Tk()
    win.geometry("300x300")
    starting_button=Button(win)
    btn=Button(win)
    btn.config(text=" " )
    def llaall():
    global btn_click
    starting_button.pack_forget()
    click_cube=Label(win)
    click_cube.config(text="클릭 횟수 : %s" %btn_click)
    click_cube.place(y=130,x=105)
    def lal1():
    global btn_click
    btn_click+=1
    bgm1_color=random.randint(1,6)
    if bgm1_color==1:
    btn.config(bg="red")
    elif bgm1_color==2:
    btn.config(bg="blue")
    elif bgm1_color==3:
    btn.config(bg="Orange")
    elif bgm1_color==4:
    btn.config(bg="green")
    elif bgm1_color==5:
    btn.config(bg="white")
    else:
    btn.config(bg="yellow")
    btn.config(command=lal1)
    btn.pack()
    btn2=Button(win)
    btn2.config(text=" " )
    def lal2():
    global btn_click
    btn_click += 1
    bgm2_color = random.randint(1, 6)
    if bgm2_color == 1:
    btn2.config(bg="red")
    elif bgm2_color == 2:
    btn2.config(bg="blue")
    elif bgm2_color == 3:
    btn2.config(bg="Orange")
    elif bgm2_color == 4:
    btn2.config(bg="green")
    elif bgm2_color == 5:
    btn2.config(bg="white")
    else:
    btn2.config(bg="yellow")
    btn2.config(command=lal2)
    btn2.pack()
    btn3=Button(win)
    btn3.config(text=" ")
    def lal3():
    global btn_click
    btn_click += 1
    bgm3_color = random.randint(1, 6)
    if bgm3_color == 1:
    btn3.config(bg="red")
    elif bgm3_color == 2:
    btn3.config(bg="blue")
    elif bgm3_color == 3:
    btn3.config(bg="Orange")
    elif bgm3_color == 4:
    btn3.config(bg="green")
    elif bgm3_color == 5:
    btn3.config(bg="white")
    else:
    btn3.config(bg="yellow")
    btn3.config(command=lal3)
    btn3.pack()
    btn4=Button(win)
    btn4.config(text=" ")
    def lal4():
    global btn_click
    btn_click += 1
    bgm4_color = random.randint(1, 6)
    if bgm4_color == 1:
    btn4.config(bg="red")
    elif bgm4_color == 2:
    btn4.config(bg="blue")
    elif bgm4_color == 3:
    btn4.config(bg="Orange")
    elif bgm4_color == 4:
    btn4.config(bg="green")
    elif bgm4_color == 5:
    btn4.config(bg="white")
    else:
    btn4.config(bg="yellow")
    btn4.config(command=lal4)
    btn4.pack()
    btn5=Button(win)
    btn5.config(text=" ")
    def lal5():
    global btn_click
    btn_click += 1
    bgm5_color = random.randint(1, 6)
    if bgm5_color == 1:
    btn5.config(bg="red")
    elif bgm5_color == 2:
    btn5.config(bg="blue")
    elif bgm5_color == 3:
    btn5.config(bg="orange")
    elif bgm5_color == 4:
    btn5.config(bg="green")
    elif bgm5_color == 5:
    btn5.config(bg="white")
    else:
    btn5.config(bg="yellow")
    btn5.config(command=lal5)
    btn5.pack()
    btn6=Button(win)
    btn6.config(text=" ")
    def lal6():
    global btn_click
    btn_click += 1
    bgm6_color = random.randint(1, 6)
    if bgm6_color == 1:
    btn6.config(bg="red")
    elif bgm6_color == 2:
    btn6.config(bg="blue")
    elif bgm6_color == 3:
    btn6.config(bg="orange")
    elif bgm6_color == 4:
    btn6.config(bg="green")
    elif bgm6_color == 5:
    btn6.config(bg="white")
    else:
    btn6.config(bg="yellow")
    btn6.config(command=lal6)
    btn6.pack()
    btn7=Button(win)
    btn7.config(text=" ")
    def lal7():
    global btn_click
    btn_click += 1
    bgm7_color = random.randint(1, 6)
    if bgm7_color == 1:
    btn7.config(bg="red")
    elif bgm7_color == 2:
    btn7.config(bg="blue")
    elif bgm7_color == 3:
    btn7.config(bg="orange")
    elif bgm7_color == 4:
    btn7.config(bg="green")
    elif bgm7_color == 5:
    btn7.config(bg="white")
    else:
    btn7.config(bg="yellow")
    btn7.config(command=lal7)
    btn7.pack()
    btn8=Button(win)
    btn8.config(text=" ")
    def lal8():
    global btn_click
    btn_click += 1
    bgm8_color = random.randint(1, 6)
    if bgm8_color == 1:
    btn8.config(bg="red")
    elif bgm8_color == 2:
    btn8.config(bg="blue")
    elif bgm8_color == 3:
    btn8.config(bg="Orange")
    elif bgm8_color == 4:
    btn8.config(bg="green")
    elif bgm8_color == 5:
    btn8.config(bg="white")
    else:
    btn8.config(bg="yellow")
    btn8.config(command=lal8)
    btn8.pack()
    btn9=Button(win)
    btn9.config(text=" ")
    def lal9():
    global btn_click
    btn_click += 1
    bgm9_color = random.randint(1, 6)
    if bgm9_color == 1:
    btn9.config(bg="red")
    elif bgm9_color == 2:
    btn9.config(bg="blue")
    elif bgm9_color == 3:
    btn9.config(bg="Orange")
    elif bgm9_color == 4:
    btn9.config(bg="green")
    elif bgm9_color == 5:
    btn9.config(bg="white")
    else:
    btn9.config(bg="yellow")
    btn.place(x=100, y=9)
    btn2.place(x=128, y=9)
    btn3.place(x=156, y=9)
    btn4.place(x=100, y=36)
    btn5.place(x=128, y=36)
    btn6.place(x=156, y=36)
    btn7.place(x=100, y=63)
    btn8.place(x=128, y=63)
    btn9.place(x=156, y=63)
    btn9.config(command=lal9)
    btn9.pack()
    starting_button.config(text="큐브 생성",command=llaall)
    starting_button.pack()
    win.mainloop()

  • @보파
    @보파  Рік тому

    num=""
    from tkinter import *
    win=Tk()
    win.geometry("10000x10000")
    def execute():
    global ent,num
    e=ent.get("1.0", "100.100")
    if "인쇄" in e:
    if e[:3]=="인쇄 ":
    lab.config(text=e[3:])
    else:
    lab.config(text="다시 입력하세요. 문자 구성이 잘못되었 습니다.")
    elif "창 생성" in e:
    win=Tk()
    win.title(num)
    win.mainloop()
    if "창 제목" in e:
    if e[:3]=="창 제목 ":
    num==e[5:]
    else:
    lab.config(text="다시 입력하세요. 문자 구성이 잘못되었 습니다.")
    win.option_add("*Font","굴림체 20")
    lab=Label(win)
    lab.place(x=1000,y=800)
    win.option_add("*Font","맑은고딕 20")
    exe=Button(win)
    exe.config(text="실행",bg="light green")
    exe.config(width=5, height=1)
    exe.config(command=execute)
    exe.place(x=100,y=53)
    ent=Text(win)
    ent.config(width=250, height=25)
    ent.place(x=150,y=100)
    win.mainloop()
    #
    #
    # word = '인쇄("안녕하세요")'
    #
    # if "안녕" in word:
    # print("있습니다.")
    # else:
    # print("없습니다.")
    #
    # for i in range(0, 2):
    # print(i)
    #
    # print(word[0])
    # print(word[0:3])

  • @CLijo602
    @CLijo602 2 роки тому

    와우

  • @보파
    @보파  Рік тому

    number=""
    from tkinter import *
    win=Tk()
    win.geometry("250x380")
    win.option_add("*Font","안가 40")
    ent=Entry(win, justify='right')
    ent.insert(0,number)
    ent.pack()
    win.option_add("*Font","안가 30")
    def bt1(num):
    global number
    ent.insert("end", str(num))
    b1=Button(win)
    b1.config(text="1")
    b1.config(command=lambda: bt1(1))
    b1.place(x=0,y=100)
    b2=Button(win)
    b2.config(text="2")
    b2.config(command=lambda: bt1(2))
    b2.place(x=60,y=100)
    b3=Button(win)
    b3.config(text="3")
    b3.config(command=lambda: bt1(3))
    b3.place(x=120,y=100)
    b4=Button(win)
    b4.config(text="4")
    b4.config(command=lambda: bt1(4))
    b4.place(x=0,y=170)
    b5=Button(win)
    b5.config(text="5")
    b5.config(command=lambda: bt1(5))
    b5.place(x=60,y=170)
    b6=Button(win)
    b6.config(text="6")
    b6.config(command=lambda: bt1(6))
    b6.place(x=120,y=170)
    b7=Button(win)
    b7.config(text="7")
    b7.config(command=lambda: bt1(7))
    b7.place(x=0,y=240)
    b8=Button(win)
    b8.config(text="8")
    b8.config(command=lambda: bt1(8))
    b8.place(x=60,y=240)
    b9=Button(win)
    b9.config(text="9")
    b9.config(command=lambda: bt1(9))
    b9.place(x=120,y=240)
    b00=Button(win)
    b00.config(text="M 0 0")
    b00.config(command=lambda: bt1("00"))
    b00.place(x=-1,y=310)
    Button(win, text="0", command=lambda: bt1(0)).place(x=0,y=310)
    win.mainloop()

  • @보파
    @보파  2 роки тому

    import random
    btn_click=0
    from tkinter import *
    win=Tk()
    win.geometry("300x300")
    starting_button=Button(win)
    btn=Button(win)
    btn.config(text=" " )
    def lal1():
    global btn_click
    btn_click+=1
    bgm1_color=random.randint(1,6)
    if bgm1_color==1:
    btn.config(bg="red")
    elif bgm1_color==2:
    btn.config(bg="blue")
    elif bgm1_color==3:
    btn.config(bg="Orange")
    elif bgm1_color==4:
    btn.config(bg="green")
    elif bgm1_color==5:
    btn.config(bg="white")
    else:
    btn.config(bg="yellow")
    def llaall():
    global btn_click
    starting_button.pack_forget()
    click_cube=Label(win)
    click_cube.place(y=130,x=105)

    btn.config(command=lal1)
    btn.pack()
    btn2=Button(win)
    btn2.config(text=" " )
    def lal2():
    global btn_click
    btn_click += 1
    bgm2_color = random.randint(1, 6)
    if bgm2_color == 1:
    btn2.config(bg="red")
    elif bgm2_color == 2:
    btn2.config(bg="blue")
    elif bgm2_color == 3:
    btn2.config(bg="Orange")
    elif bgm2_color == 4:
    btn2.config(bg="green")
    elif bgm2_color == 5:
    btn2.config(bg="white")
    else:
    btn2.config(bg="yellow")
    btn2.config(command=lal2)
    btn2.pack()
    btn3=Button(win)
    btn3.config(text=" ")
    def lal3():
    global btn_click
    btn_click += 1
    bgm3_color = random.randint(1, 6)
    if bgm3_color == 1:
    btn3.config(bg="red")
    elif bgm3_color == 2:
    btn3.config(bg="blue")
    elif bgm3_color == 3:
    btn3.config(bg="Orange")
    elif bgm3_color == 4:
    btn3.config(bg="green")
    elif bgm3_color == 5:
    btn3.config(bg="white")
    else:
    btn3.config(bg="yellow")
    btn3.config(command=lal3)
    btn3.pack()
    btn4=Button(win)
    btn4.config(text=" ")
    def lal4():
    global btn_click
    btn_click += 1
    bgm4_color = random.randint(1, 6)
    if bgm4_color == 1:
    btn4.config(bg="red")
    elif bgm4_color == 2:
    btn4.config(bg="blue")
    elif bgm4_color == 3:
    btn4.config(bg="Orange")
    elif bgm4_color == 4:
    btn4.config(bg="green")
    elif bgm4_color == 5:
    btn4.config(bg="white")
    else:
    btn4.config(bg="yellow")
    btn4.config(command=lal4)
    btn4.pack()
    btn5=Button(win)
    btn5.config(text=" ")
    def lal5():
    global btn_click
    btn_click += 1
    bgm5_color = random.randint(1, 6)
    if bgm5_color == 1:
    btn5.config(bg="red")
    elif bgm5_color == 2:
    btn5.config(bg="blue")
    elif bgm5_color == 3:
    btn5.config(bg="orange")
    elif bgm5_color == 4:
    btn5.config(bg="green")
    elif bgm5_color == 5:
    btn5.config(bg="white")
    else:
    btn5.config(bg="yellow")
    btn5.config(command=lal5)
    btn5.pack()
    btn6=Button(win)
    btn6.config(text=" ")
    def lal6():
    global btn_click
    btn_click += 1
    bgm6_color = random.randint(1, 6)
    if bgm6_color == 1:
    btn6.config(bg="red")
    elif bgm6_color == 2:
    btn6.config(bg="blue")
    elif bgm6_color == 3:
    btn6.config(bg="orange")
    elif bgm6_color == 4:
    btn6.config(bg="green")
    elif bgm6_color == 5:
    btn6.config(bg="white")
    else:
    btn6.config(bg="yellow")
    btn6.config(command=lal6)
    btn6.pack()
    btn7=Button(win)
    btn7.config(text=" ")
    def lal7():
    global btn_click
    btn_click += 1
    bgm7_color = random.randint(1, 6)
    if bgm7_color == 1:
    btn7.config(bg="red")
    elif bgm7_color == 2:
    btn7.config(bg="blue")
    elif bgm7_color == 3:
    btn7.config(bg="orange")
    elif bgm7_color == 4:
    btn7.config(bg="green")
    elif bgm7_color == 5:
    btn7.config(bg="white")
    else:
    btn7.config(bg="yellow")
    btn7.config(command=lal7)
    btn7.pack()
    #8
    btn8=Button(win)
    btn8.config(text=" ")
    def lal8():
    global btn_click
    btn_click += 1
    bgm8_color = random.randint(1, 6)
    if bgm8_color == 1:
    btn8.config(bg="red")
    elif bgm8_color == 2:
    btn8.config(bg="blue")
    elif bgm8_color == 3:
    btn8.config(bg="Orange")
    elif bgm8_color == 4:
    btn8.config(bg="green")
    elif bgm8_color == 5:
    btn8.config(bg="white")
    else:
    btn8.config(bg="yellow")
    btn8.config(command=lal8)
    btn8.pack()
    btn9=Button(win)
    btn9.config(text=" ")
    def lal9():
    global btn_click
    btn_click += 1
    bgm9_color = random.randint(1, 6)
    if bgm9_color == 1:
    btn9.config(bg="red")
    elif bgm9_color == 2:
    btn9.config(bg="blue")
    elif bgm9_color == 3:
    btn9.config(bg="Orange")
    elif bgm9_color == 4:
    btn9.config(bg="green")
    elif bgm9_color == 5:
    btn9.config(bg="white")
    else:
    btn9.config(bg="yellow")
    btn9.config(command=lal9)
    btn9.pack()
    btn.place(x=100, y=9)
    btn2.place(x=128, y=9)
    btn3.place(x=156, y=9)
    btn4.place(x=100, y=36)
    btn5.place(x=128, y=36)
    btn6.place(x=156, y=36)
    btn7.place(x=100, y=63)
    btn8.place(x=128, y=63)
    btn9.place(x=156, y=63)
    starting_button.config(text="큐브 생성",command=llaall)
    starting_button.pack()
    win.mainloop()
    not