15.2.1 레이블

    첫 번째 위젯으로 레이블(Label)을 다뤄 보겠습니다. 레이블로는 텍스트와 이미지를 표현할 수 있습니다.

    TIP Label은 레이블 또는 라벨로 읽습니다. 다른 곳에서 Label 위젯을 라벨로 표현해도 같은 것으로 보면 됩니다.

    help()로 레이블에 대한 정보를 간략히 살펴봅시다.

    from tkinter import *
    
    help(Label)
    실행결과
    Help on class Label in module tkinter:
    
    class Label(Widget)
        
    | Methods defined here:
    |
    | __init__(self, master=None, cnf={}, **kw)
    |     Construct a label widget with the parent MASTER.
    |
    |     STANDARD OPTIONS
    |
    |         activebackground, activeforeground, anchor,
    |         background, bitmap, borderwidth, cursor,
    |         disabledforeground, font, foreground,
    |         highlightbackground, highlightcolor,
    |         highlightthickness, image, justify,
    |         padx, pady, relief, takefocus, text,
    |         textvariable, underline, wraplength
    |
    |     WIDGET-SPECIFIC OPTIONS
    |
    |         height, state, width
    |
    | ----------------------------------
    
    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.