반응형
SMALL
Python Tkinter Colors + Example - Python Guides
참고 사이트
Python Tkinter Colors + Example - Python Guides
Keep reading more on Python Tkinter Colors, Tkinter Colors RGB, Tkinter Color Button, Tkinter Color Chooser, Tkinter Color Transparent, Tkinter Color Window.
pythonguides.com
jupyter 창에서 하는거임!
GUI 창 생성, 버튼 색 누르면 바뀌는 거, 입력창 만들기
from tkinter import*
Tk()
win = Tk() # 창 생성
win.geometry('1000x500')
win.title("test")
win.option_add("*Font","맑은고딕 50")
win.configure(bg='#D9D8D7')
#btn = Button(win, text="B")
#btn.pack()
#버튼 속성
Button(
win,
text='Download',
font=('Times', 20),
padx=10,
pady=10,
bg='#4a7abc',
fg='yellow',
activebackground='green',
activeforeground='white'
).pack(expand=True)
#입력창 만들기
tb = Text(
win,
width=60,
height=10,
font=('Times', 20),
wrap='word',
fg='#4A7A8C'
)
tb.pack(expand=True)
#버튼 - 입력창 순서를 바꾸면 위아래 바뀌어서 생성됨
win.mainloop() # 창 실행
반응형
LIST