Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Quickly Learn To Use Delphi Classes To Create A New Python Type With Python4Delphi Sample App

Earlier we learned how to create a new Python Type for a Delphi Record using the TPythonType component’s property TheType. It’s also necessary to learn how to use Delphi classes for creating a new Python Type using Python4Delphi component’s property PyObjectClass. You can also use Python4Delphi with C++Builder. This post will help to understand that.

Prerequisites: Download and install the latest Python for your platform. Follow the Python4Delphi installation instructions mentioned here. Alternatively, you can check out this video Getting started with Python4Delphi.

Components used in Python4Delphi Demo8 Sample App:

You can find the Python4Delphi Demo8 sample project from the extracted repository ..\Python4Delphi\Demos\Demo08.dproj. Open this project in RAD Studio 10.4.1 and run the application.

Implementation Details:

[crayon-67431ad860218621348542/]
[crayon-67431ad860220059800163/]
<strong>Python4Delphi Demo8<strong>

Check some of the tutorials available for Python4Delphi here

Exit mobile version