Closed GoogleCodeExporter closed 9 years ago
Can you provide the following info:
- Version of Python used
- Version of Delphi used
- How you defined the attribute that cannot be located
Ideally post a little project that demonstrates the issue. (Expected result vrs
actual result)
Original comment by pyscripter
on 6 Dec 2009 at 12:15
Sorry I read your report and saw that you are using the AddMethod way. Still a
demo
reproducing the error would help. I guess you are using Python 2x.
Original comment by pyscripter
on 6 Dec 2009 at 12:23
Cannot Reproduce.
Take for example Demo 08 where a new type is created TPyPoint and a method
called
OffsetBy is added by AddMethod.
I am including the following statement in TForm1.Button1Click after DelphiPoint
is
created.
ShowMessage(PythonEngine1.PyObjectAsString(DelphiPoint.GetAttr('OffsetBy')));
It works as expected with Python 2.5, 2.6 and 3.1.
Please resubmit if needed.
Original comment by pyscripter
on 10 Dec 2009 at 12:30
IMPORTANT
I forgot to say that your PythonType needs to have in the TypeFlags the
tpfBaseType
set. In the next version it will be set by default.
Original comment by pyscripter
on 11 Dec 2009 at 12:45
Original issue reported on code.google.com by
r...@tordivel.no
on 23 Oct 2009 at 7:44