Grid attribute, grid

Source: Internet
Author: User

Grid attribute, grid

Standard tk component type: button Radiobutton radio Button Checkbutton check Button Listbox list box Scrollbar scroll bar Entry Text box Canvas Frame Toplevel top-level Window Scale dial Menu Menubutton Menu Button grid :, grid is not a component. It is a layout manager like pack, but it is more advanced than pack. Let's take a look at this command: $ widget-> grid (-row => 1, -column => 1). This line tells the interpreter to place the $ txt widget under the parent widget in the first column of the First row. This will help you understand: Column1 Column2Row? 1 '$ txt '? Widget? Will? Be? Here '$ srl_y '? Widget's? PlaceRow? 2 '$ srl_x '? Widget's? Positionsome options:-sticky? => The STYLE option is used to place (or stretch) a widget in cell STYTLE. It contains 0 characters or contains n, s, e, or w. Each letter points to one direction (north, south, east or west), the Child control can be combined with n, s, e, and w, the Child control can be stretched to fill the whole height or width. -Ipadx? => AMOUNT specifies the amount of horizontal padding reserved for each slave side. These controls are used to increase the slave's Internal Boundary-ipadx => AMOUNT's internal horizontal padding value on both sides of the component. Amount must be a valid screen distance, such as 2 or 0.5c. The default value is 0. -Ipady => amount is left in the internal vertical fill value on both sides of the component. The default value is 0. -Ipady? =>? AMOUNT specifies the AMOUNT reserved for each slave edge for horizontal internal filling-padx? =>? AMOUNT specifies the external horizontal fill value left on both sides of the component. By default, the value 0-pady => amount is left in the vertical field of the component. The default value is 0. -Row? =>? N The inserted child control occupies the nth row. Starting from 0, if this option is not provided, the Child control will be arranged in the same row as the previously specified child control, or the first child control. -Column? =>? N subcontrols occupy column N-rowspan? =>? The number of rows occupied by N is one row by default-columnspan? =>? Scale the number of columns occupied by N: enables the scroll bar to adjust the number of columns through the variables entered by the user-from? =>? Value starting with NUMBER-? =>? The end value of NUMBER-tickinterval? =>? NUMBER scale interval, determine the value scale mark-varable? =>? NAME specifies the NAME of the global variable connected to scale. When the value of the variable changes, scale will update to affect the value. When the variable is updated interactively, the variable is modified to affect the new scale variable.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.