DelphiDelphiVCLPythonPython GUIWindows

Python Windows App: Draw A Rectangle With DelphiVCL.Shape

focused black businesswoman using laptop

DelphiVCL.Shape represents a geometric shape that can be drawn on a form.

Add a Shape object to a form to draw a simple geometric shape on the form. TShape introduces properties to describe the pen used to outline the shape and the brush used to fill it.

If the shape is only part of the image of custom control, use the methods of the control’s canvas instead.
Browse all the properties, methods, and built-in properties of the DelphiVCL.Shape using dir() command:

See the responses in our Windows command prompt:

1_1-6551102

Here is the working example of the implementation of DelphiVCL.Shape to draw a rectangle:

To see the result, let’s run the complete script:

The result:

1_2-3407976

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

close
Related posts
DelphiDelphiVCLPythonPython GUIWindows

How to use the State Property

DelphiPythonPython GUIWindows

Quickly Build A Python GUI Apps For Replacing And Extracting Keywords In Sentences Using FlashText Library In A Delphi Windows App

DelphiLearn PythonPythonPython GUIRAD Studio

Learn To Integrate Python Cryptographic Services To A Delphi Windows GUI App

DelphiDelphiVCLIDELearn PythonPythonPython GUIRAD StudioWindows

Python For Delphi VCL vs Python GUI Generator: wxGlade

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish