running a Delphi part from Python ?

Chris Mellon arkanes at gmail.com
Mon Jul 16 15:54:56 EDT 2007


On 7/16/07, Stef Mientki <S.Mientki-nospam at mailbox.kun.nl> wrote:
> Chris Mellon wrote:
> > Delphi components are tightly tied to the Delphi runtime environment
> > and its' gui abstractions, so embedding it as is is will be a massive
> > hack (and require extensive C code) if its even possible.
> The editor I've in mind communicates only through messages, about 20 to the editor and 5 back,
> so that doesn't sound too much.

If it communicates entirely through messages, then it's likely not a
Delphi component at all, and instead a native (to Windows)
implementation and the Delphi component you've used is simply a
wrapper around the messaging API. If that's the case, then you can
probably use it directly in wxPython, using ctypes. Confirm this with
your component vendor by finding out if it's usable from C using the
Windows API.



More information about the Python-list mailing list