# Delphi VCL & FMX Libraries for Python

The DelphiVCL and DelphiFMX libraries for Python are a set of Python modules that put the robust and mature VCL and FireMonkey (FMX) GUI libraries in the hands of Python developers.

Check out this sample:

from delphivcl import *

class MainForm(Form):

    def __init__(self, owner):
        self.Caption = "A VCL Form..."
        self.SetBounds(10, 10, 500, 400)
        self.Position = "poScreenCenter"

        self.lblHello = Label(self)
            Caption="Hello DelphiVCL for Python")
        self.lblHello.SetBounds(10, 10, 300, 24)

        self.OnClose = self.__on_form_close

    def __on_form_close(self, sender, action):
        action.Value = caFree

def main():
    Application.Title = "Hello Python"
    Main = MainForm(Application)


Very nice and nostalgic! I used VCL a lot in the 2000s, and was very productive with it. This version is not open source, but has some kind of freeware license. I personally wouldn’t use any non-platform-provided UI library that’s not open source, for practical reasons.

# Codon: a LLVM-based compiler for Python(-like) code

Codon is a high-performance Python compiler that compiles Python code to native machine code without any runtime overhead. Typical speedups over Python are on the order of 10-100x or more, on a single thread. Codon’s performance is typically on par with (and sometimes better than) that of C/C++. Unlike Python, Codon supports native multithreading, which can lead to speedups many times higher still.

Interesting! However:

While Codon supports nearly all of Python’s syntax, it is not a drop-in replacement, and large codebases might require modifications to be run through the Codon compiler.

Here’s a list of differences.