-
-
Notifications
You must be signed in to change notification settings - Fork 327
Sample code for object creation via pyd-file #473
-
I'd like to be able to create instance of a given class, and do this via a pyd-file. In the demos there seems to "only" samples from GUI-applications? Is there a sample where this is done at run time?
Beta Was this translation helpful? Give feedback.
All reactions
-
👀 1
Please see the examples of created python extension modules (pyd extension) in the Modules subdirectory.
Replies: 1 comment 2 replies
-
Please see the examples of created python extension modules (pyd extension) in the Modules subdirectory.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
I think I may have not formulated myself very clearly. What I was looking for was sample code, that allows me to expose the constructtion of Delphi types in Python. I went through the demo more carefully, and I believe what I am looking for is Demo34, where instances of a type TPoint are created in a Python-scrip.
Beta Was this translation helpful? Give feedback.
All reactions
-
You may want to have a look at https://github.com/pyscripter/python4delphi/blob/master/Tests/WrapDelphiTest.pas which shows/tests different ways of exposing delphi objects, interfaces and records.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1