Tkinter (29) tagged frame parts ttk.LabelFrame

Time:2021-1-9

Creation of TTK tagged frame parts and its options

w = ttk.LabelFrame(parent, option=value, ...)
option explain
borderwidth Dimension of part frame
class_ Component classification name cannot be changed after creation
cursor When the mouse hovers over the button, the empty string inherits the options of the parent part
height Vertical height, generally invalid, unless grid is set_ propagate (0)
labelanchor The location of the tag is internally defined as “NW”, with a total of 9 locations
labelwidget Using parts as labels
padding Increase the external spacing of part content
relief Pattern of outer frame
style Generate the style of the part
takefocus Keyboard focus, ‘(default) is the same as false, false or true
text Label string
underline Set the position of the bottom line, and set – 1 as none
width Component dimension, generally invalid, unless grid is set_ propagate (0)

Method of TTK labeled frame parts

General method of TTK component

To be continued

This work adoptsCC agreementReprint must indicate the author and the link of this article


Jason Yang

Recommended Today

Basic concepts of Vue

The main aspects of the front end logic judge loop event Browser event: window document DOM event: add, delete, traverse, modify node element content view html css signal communication xhr Ajax axios Vue Separation principle of SOC attention Pay attention to the view layer: show it to the user and refresh the data given by […]