본문 바로가기

Code Habit

검색하기
Code Habit
프로필사진 코드베어

  • 분류 전체보기 (203)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
Tags
  • tcp
  • File
  • http
  • 리뷰
  • Linux
  • mutex
  • FOR
  • install
  • Close
  • window
  • json
  • Sync
  • channel
  • Golang
  • go
  • package
  • 책
  • bitcoin
  • C
  • Python
  • windows
  • 영화
  • range
  • Callback
  • GO 언어
  • JavaScript
  • API
  • c++
  • write
  • go언어
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Pack (1)

Code Habit

[python] tkinter - Button, Label 생성

tkinter 라이브러리를 통해 Button 및 Label을 간단히 만들어 볼 수 있다. 각 컨트롤을 만들기 전 이를 배치할 window 창을 만든다. from tkinter import * win = Tk() win.title("button & label") win.geometry("540x380") win.option_add("*Font", "돋움20") win.mainloop() Button() 함수로 버튼을 생성하고 pack() 함수로 버튼을 배치한다. btn = Button(win) btn.config(width=20, height=20) btn.config(text="버튼1") def clicked(): print("Clicked !") btn.config(command = clicked) b..

카테고리 없음 2022. 6. 21. 09:55
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바