.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:
1 2 3 4 |
# Draw a rectangle shpRectangle = Shape(pgOne) shpRectangle.SetProps(Parent=pgOne,Shape = 'stRectangle') shpRectangle.SetBounds(5,5,100,300) |
The results:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.