The documentation for Delphi’s VCL is available on Embarcadero’s DocWiki. You will notice that on DocWiki, all the VCL components are prefixed with a T. This is a convention of the Delphi language, but the DelphiVCL4Python module removes the T prefix for a more Python-like experience (see and compare it with the outputs of this post).
Here are the lists of all the methods, events, and…
Learn Three Different Ways of Formatting String in Python!
March 18, 2021
In this post, we will learn three different ways of formatting string in Python as well as which one you should use.
The old way
In the beginning of Python, there was only one way to format strings – by using %s. Let’s an example:
"Hello, %s" %s…
How to use the Show Method for DelphiVCL4Python Applications
March 14, 2021
We use the Show method to make a form or window visible.
Use the Show method to make visible a control that was previously hidden.
The Show method sets the control’s Visible property to true and ensures that the parent control is also visible.
Here is…
How to Change the Font Attributes
March 14, 2021
We use Font or TFont to specify the attributes of text written on or in the control.
To change to a new font, specify a new TFont object. To modify a font, change the value of the Charset, Color, Height, Name, Pitch, Size, or Style of the TFont object.
Note: Changing the font color of the Caption is not supported for some controls (such as TButton). In most cases, there is an…
Let’s compare the DelphiVCL form with other Python GUI frameworks (we take the GUI created in this post as an example):
DelphiVCL provides better OS integration and styling by default. It provides Windows-10 styling to make your GUI looks professional and…
Compare Python For Delphi VCL vs Dear PyGUI For Windows Apps
March 13, 2021
Are you an expert in desktop apps and GUI development who want to also work with Python because of its simplicity, flexible use, and growing demand in the market out there? Or are you a Python Developer at any level who wants to start a GUI development journey? This article…
Python: Getting Started with DelphiVCL4Python III: Overview of Commonly Used VCL Components
March 12, 2021
To increase your familiarity with DelphiVCL Components, this post will show you a demo that presents commonly used VCL components, and call them one-by-one with Python.
The following is a Python code sample using DelphiVCL4Python:
from delphivcl import *
class MainForm(Form):
def __init__(self, Owner):
self.Caption = "Components Overview Sample"
self.Name = "BaseForm"
…
Description
This post will break down the code example to create a simple Form app as presented in the previous post. These steps are essential for Python Developers to be familiar with Delphi VCL methods, events, and properties, to enable you in creating professional…
In essence, DelphiVCL is a wrapper that helps to create and access Delphi Objects quickly from Python. These wrappers contain container classes to extend and expose your custom events, methods, variables that can be used in Python script.
Code example
Here is a Python…
OnDblClick Event in DelphiVCL4Python Library
March 8, 2021
OnDblClick event occurs when the user double-clicks the left mouse button when the mouse pointer is over the control.
We use the OnDblClick event to respond to mouse double-clicks.
OnDblClick is an event handler of type System.Classes.TNotifyEvent.
What is TNotifyEvent?
TNotifyEvent is used for events that do not require parameters.
The TNotifyEvent type is the type…