Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-06-01 Thread Robert
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.

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-06-01 Thread Robert
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

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-05-31 Thread Robert
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.

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-05-31 Thread Robert
..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}

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-05-31 Thread Eugen Bolz
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

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-05-30 Thread Marco van de Voort
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.

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-05-30 Thread Michael Van Canneyt
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?

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-05-30 Thread Michael Van Canneyt
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,