Michael Van Canneyt wrote:
On Sat, 30 May 2009, Robert wrote:
i := pp.f(); // EVariantTypeCastError (i:Integer or LongInt)
This needs investigation.
Found, that the origin of this casting problem is obviously, that
TPythonVariantType.CastTo is not called by FPC, like it is in Delphi.
Eugen Bolz wrote:
I'm happy that also others try to work with p4d, not only me.
With this i can add a Delphi-Variable/Class to Python:
MyPyForm := PyFormType.CreateInstance;
(PythonToDelphi(MyPyForm) as TPyForm).Control:= Self;
PyClassMod.SetVar('MainForm', MyPyForm);
But when I wanted to
Michael Van Canneyt wrote:
On Sat, 30 May 2009, Robert wrote:
Michael Van Canneyt wrote:
On Sat, 30 May 2009, Robert wrote:
I tried to use current http://code.google.com/p/python4delphi with
Lazarus. Did somebody use P4D successfully with recent Lazarus?
Patches? I face a few problems.
..to add: in attachment my patch so far to the P4D files
diff -u _orig\Definition.Inc .\Definition.Inc
--- _orig\Definition.IncFri May 29 16:00:37 2009
+++ .\Definition.IncSun May 31 11:25:52 2009
@@ -33,7 +33,7 @@
//{$DEFINE PYTHON23}
//{$DEFINE PYTHON24}
//{$DEFINE PYTHON25}
I'm happy that also others try to work with p4d, not only me.
With this i can add a Delphi-Variable/Class to Python:
MyPyForm := PyFormType.CreateInstance;
(PythonToDelphi(MyPyForm) as TPyForm).Control:= Self;
PyClassMod.SetVar('MainForm', MyPyForm);
But when I wanted to change the Caption I
On Sat, May 30, 2009 at 12:37:00PM +0200, Robert wrote:
I tried to use current http://code.google.com/p/python4delphi with
Lazarus. Did somebody use P4D successfully with recent Lazarus?
Patches? I face a few problems.
P4D worked principally with Lazarus, but only after a few a
adaptations.
On Sat, 30 May 2009, Robert wrote:
I tried to use current http://code.google.com/p/python4delphi with
Lazarus. Did somebody use P4D successfully with recent Lazarus?
Patches? I face a few problems.
What about this problem, and what could be a workaround?
On Sat, 30 May 2009, Robert wrote:
Michael Van Canneyt wrote:
On Sat, 30 May 2009, Robert wrote:
I tried to use current http://code.google.com/p/python4delphi with
Lazarus. Did somebody use P4D successfully with recent Lazarus?
Patches? I face a few problems.
What about this problem,