Hi, This won't work simply because compiling is not executing!!!! Compile will return a code object that is executable. I would say that the simplest thing to...
Hi Andre There is a very simple way to do this, if you need to compile a few .py files into the executable: Drop a TMemo onto a form, then paste the text of...
pe:=TPythonEngine.Create(nil); pe.ExecString(....) the code above will raise exception. Drop a TPythonEngine on the main form at design time works fine. So,...
All I want to be able to do is take the output of a script and send it to delphi to be sent to another program (I am using delphi as my GUI!).And I want to...
That's exactly what I'm doing right now. If you're like me, believing that delphi with python is a match made in heaven, Python4Delphi would naturally be the...
That's right that integrating Delphi and Python via plain XML over a HTTP channel is the simplest solution but it really depends on what you want to do! This...
From my experience Py4D is really great. I actually have done some experimental project to wrap TClientDataSet for Python with Py4D. I remember that I actually...
Beginner question... I've browsed the 32 demos that come with P4D, but perhaps I don't quite understand what's going on there or am unfamiliar with the ...
Hi, I think that you missed Demo31 which shows how you can benefit from the TPyDelphiWrapper component (from the WrapDelphi.pas and WrapDelphiVCL.pas units)....
Thank you, Morgan. I looked at Demo 31, but it seems to be concerned with creating Delphi forms from Python, which is much more than I need. (I thought Demo 08...
IFreeNotification is required for events because the event manager will create a proxy TEventHandler class that will turn the Delphi event into a Python method...
Okay, I've tried to follow what happens in TTestClass, minus the interfaces, but cannot yet get this to work. When Python script tries to access a published...
I'm sorry, scratch the previous message, the property problem was caused by syntax error on the Python side. I can now get and set published properties...
Yes, look at the wrappers in the various WrapDelphiXXX units and do the same, but it will require some Python API skills, understanding reference counting, how...
I have just discovered this group and P4D. I was a Senior Developer Support Engineer for Borland Delphi during the Delphi 2 to Delphi 4 days. I am now a Python...
Hi, ... Great! ... Yes it works fine, as any component for D2006, because D2007 is binary compatible with D2006 DCUs! Anyway, it compiles and works fine. Bye, ...
Hello, im having problems when dec the reference count of a module dict (the problem happens on Py_DECREF(pDict); ) If i dec the module dict reference count,...
Hi! What are you using? Where's TPythonEngine? Are you using your own mapping of the python dll? Anyway, you must check all your API calls to see if they...
I am trying my best to make a mud in Delphi and using Python as the scripting language. A mud is nothing more then a text base rpg game that can be played...
I don't understand your problem. Is your server 100% written in Python and just a process listening to client requests made by a Delphi desktop application? ...
Let me see if I can explain it better. The server itself is written in Delphi. Python does nothing but controls the scripting and this done server side. The...
Hi, Is there any issue between delphi memory manager (FastMM) with python memory manager? i got access violation on Python25.dll occasionally, specifically on...
I have been using python24.dll with FastMM for a few years without problems. I assume that Python has its own heap, and I doubt there is any interaction...
... Thanks, while lastly I found my code that causing the bug, it seems quite difficult to trace reference count on which live objects that causing memory...
Hi everyone, Hope this is ok to post here... You can see a list of my groups on Grouply at the link below. Maybe you'll find some you want to join. Robert ...