Tkinter (27) frame parts ttk.Frame


The creation of TTK framework parts and its options

w = ttk.Frame(parent, option=value, ...)
option explain
borderwidth The dimension of the outer frame of the part is internally set as 0
class_ Component classification name cannot be changed after creation
cursor The mouse that appears when the mouse hovers over a button
height Height of components
padding Spacing between outer frame and inner part
relief Pattern of outer frame
style Generate the style of the part
takefocus Keyboard focus, 0 or 1 (internal)
width Component dimension

To be continued

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

Jason Yang

Recommended Today

Introduction to vernacular spring cloud

First of all, let me show you a picture. If you don’t understand this picture very well, I hope you will suddenly realize it after reading my article. What is spring cloud Building a distributed system doesn’t need to be complex and error prone. Spring cloud provides a simple and easy to accept programming model […]