Site icon Python GUI

Specify Component’s Width Properties using .Width

featuredimage2 2

.Width specifies the horizontal size of the control or form in pixels.

Use the Width property to read or change the width of the control.

Note: For tab sheet controls, changing this property at the run time does not affect.

Here are the examples of drawing a rectangle with Width =100, 200, 300, or 460 respectively:

[crayon-662c9a4528e34028373597/]

The results:

 

 

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Exit mobile version