Size control of Wxpython Sizeritem

Source: Internet
Author: User

Size control of Wxpython Sizeritem

Proportion controls the relative size of the control, proportion if 0, which represents the default size. For example, a box has two identical controls, a, a, B, if the Proportioin is 2 and 1, the size of A and B is 2:1; if there are three identical control a,b,c in a box, their proportion are 0,1,1 respectively. Then a will be the default size (such as a text box with only one line) and b,c the rest of the box.

Wx. EXPAND says space fills all the places it can fill, such as placing a space in a box and adding this style=wx. EXPAND, the control will occupy the entire box space. It is and WX. Left, WX. Right these style mates are used.
1
Wx. all = WX. Left | Wx. Right | Wx. TOP | Wx. BOTTOM

Because Hbox has a proportion of 0, it is the default size in the vertical direction, but can be extended horizontally.


Oh, that Wx.expand | The next one will be wx.all, what does wx.left,wx.right mean?
Wx. Left: Extend to
Wx. Right: Extend to the Left
Wx. Top: extending to the top
Wx. BOTTOM: extending to the bottom
Wx. All: Extend to four directions

Size control of Wxpython Sizeritem

Related Article

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.