To make sure that you have already installed the DelphiVCL Python library correctly, you can simply test it using the Python dir() command:
import delphivcl
dir(delphivcl)
If you install it correctly, it will return all properties, methods, even built-in properties of the DelphiVCL module, without the values:
See them more clearly here:
['Abort',
'Action',
'ActionList'…
There are two ways for you to install DelphiVCL: By directly copying the module to your local/system path, or install it via pip.
1. Copy to Your Local or System Path
Download the DelphiVCL.pyd module Beta Release 0.01– Beta preview – 2021-18-01, and extract…
The most important benefits of the VCL over other competing technologies such as Tkinter and PyQT are as follows:
A standard set of components that includes all controls provided by the Windows UI framework. This set consists of components such as buttons, edits, menus…
Specify Component's Width Properties using .Width
February 28, 2021
.Width specifies the horizontal size of the control or form in pixels.
Use the Width property to read or change the width of the control.
Note: For tab sheet controls, changing this property at the run time does not affect.
Here are the examples of drawing a rectangle with Width =100, 200, 300, or 460 respectively:
# Draw a rectangle
shpRectangle =…
Specify Component's Top Properties using .Top
February 22, 2021
.Top specifies the Y coordinate of the upper-left corner of a control, relative to its parent or containing control in pixels.
Use Top to locate the top of the control or reposition the control to a different Y coordinate. The Top property, like the Left property, is…
Specify Component's Left Properties using .Left
February 22, 2021
.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…
Specify Component's Height Properties using .Height
February 22, 2021
.Height specifies the vertical size of the control in pixels.
Use the Height property to read or change the height of the control.
Here is the example of drawing a rectangle with Height=100, 200, or 300:
# Draw a rectangle
shpRectangle = Shape(pgOne)
shpRectangle.SetProps(Parent=pgOne,Shape = 'stRectangle')
shpRectangle.SetBounds(5,5,460,100)
The…
Python For Delphi VCL vs Tkinter
February 14, 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…
6 Best Python GUI Frameworks in December 2021
February 12, 2021
Python’s rise among developers around the world has been documented by several well-known programming-language indexes. But UK developer-focused analyst SlashData has now put a figure on the actual number of developers that use the language.
According to SlashData…
Introduction to DelphiVCL
February 7, 2021
DelphiVCL is a Python module giving Python GUI apps on Windows access to Delphi’s VCL for robust and high-performance native Windows visual widgets. It uses the Python4Delphi library as a bridge between Delphi’s VCL (Visual Component Library) and Python. DelphiVCL is currently for Windows, while DelphiFMX is coming soon with support for other platforms, including Linux, macOS, and Android…