DelphiDelphiVCLPythonPython GUIWindows

Getting Started with DelphiVCL: Simple Windows Form Example In Python

featuredimage2

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.Here is a Python code sample using DelphiVCL to create a simple Form app with a list, edit, and button:

Here is the GUI created by the Python code above. You can run it using your favorite Python IDE, which for me is PyScripter:

output01 onpyscripteride

Or you can save the script first, and run it through the command line using this command:

1 4 1117353

This GUI expects user inputs. Clicking the button will add the text from the edit box to the list box:

1 1 5028063

Note for beta release users

In practice, the only difference between DelphiVCL for Python release version and the beta version is only in how you write the DelphiVCL. Here is the example for how you import the library:

  • Release version:
  • Beta version:

Watch this comprehensive introduction to Python GUI Development with DelphiVCL library video by Jim McKeeth:


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

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


References & further readings

[1] Anbarasan. (2021). 

Quickly Build Ultra-Modern Python Native Windows GUIs With Delphi. PythonGUI.org. Embarcadero Technologies. pythongui.org/quickly-build-ultra-modern-python-native-windows-guis-with-delphi

Related posts
CodeIDELearn PythonPythonPython GUITkinter

How To Make More Than 20 ChatGPT Prompts Work With Python GUI Builders And Matplotlib Library?

CodeIDELearn PythonPythonPython GUITkinter

How To Make More Than 20 ChatGPT Prompts Work With Python GUI Builders And Pillow Library?

CodeDelphiDelphiFMXLearn PythonProjectsPythonPython GUI

How To Create A Weather App With The Python Delphi Ecosystem and Weatherstack API

CodeDelphiDelphiFMXLearn PythonProjectsPythonPython GUI

How To Create A Music Player With The Python Delphi Ecosystem

Leave a Reply

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