C++CodeDelphi

Learn How To Dynamically Create And Destroy Python4Delphi Components With A Delphi Windows App

Earlier we have learned how to create a Python Type using Python4Delphi components in a Delphi GUI app. From the post we know, how to create and use Python4Delphi components such as TPythonEngine, TPythonModule, TPythonType by a simple drag and drop in our application. But sometimes developers may need to instantiate those components dynamically rather than using GUI components. How to do that?
Read more
C++CodeDelphiIDE

Quickly Log Python Script Output To The Delphi Debug Log In Your Windows Apps

Sometimes developers need to log the output messages in Delphi for debugging purposes. You might aware this can be achieved by the windows API OutputDebugStringA. How about direct your python output messages to the Delphi Events Log Window? Yes, Python4Delphi has a flexible component PythonInputOutput to redirect your python output to the Delphi Events Log window with less code. You can…
Read more
C++CodeDelphi

Learn To Build A Python GUI For Processing Images With Pillow Library In A Delphi Windows App

Are you looking for a simple way to process images programmatically? You can do it with Python for Delphi using Pillow library. Python for Delphi (P4D) is a free tool that allows you to execute Python scripts, create new Python modules and types in Delphi. This post will guide you on how to run Pillow library code using Python for Delphi. Delphi itself offers a number of advanced image…
Read more
CodeDelphi

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.
Read more