.Left specifies the horizontal coordinate of the left edge of a component relative to its parent.
Use the Left property to determine where the left side of the control begins or to reposition the left side of the control.
If the control is contained in another control, the Left and Top properties are relative to the parent control. If the control is contained directly by the form, the property values are relative to the form. For forms, the value of the Left property is relative to the screen in pixels.
Here is the example of drawing a rectangle with Left=5:
1 2 3 4 |
# Draw a rectangle shpRectangle = Shape(pgOne) shpRectangle.SetProps(Parent=pgOne,Shape = 'stRectangle') shpRectangle.SetBounds(5,15,300,300) |
The result:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.