Notice
                              
                          
                        
                          
                          
                            Recent Posts
                            
                        
                          
                          
                            Recent Comments
                            
                        
                          
                          
                            Link
                            
                        
                    | 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 
                            Tags
                            
                        
                          
                          - channel
 - 리뷰
 - 영화
 - http
 - c++
 - Golang
 - JavaScript
 - go언어
 - mutex
 - package
 - bitcoin
 - install
 - Python
 - File
 - Sync
 - GO 언어
 - Close
 - Callback
 - Linux
 - json
 - windows
 - C
 - 책
 - FOR
 - tcp
 - range
 - API
 - go
 - write
 - window
 
                            Archives
                            
                        
                          
                          - Today
 
- Total
 
목록config (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