shineworld 73 Posted November 23, 2021 Hi all. I'm trying to create a Python Extension Module with Delphi Sydney. I'm adding an IPC Engine Client to access to one or more IPC Engine Server (either based on Windows Messages). It works and is very a good tool. I've only a question about the resulting python class that does not have a list of properties/methods, not in all cases. Looking at xxx.__dir__ I can get the list of available methods: But if I use the code completion of PyScripter only base TPyDelphiPersistent are available: Strangely if I create a pre-made istance TPyIPCEngineClient object and I add it to the module as SetVar('myIPC', xxxx, xxx) all TPyIPCEngineClient are showed. What I'm mistaking ? Thank you in advance for replies. pycncipc1.zip Share this post Link to post
pyscripter 689 Posted November 23, 2021 (edited) Are you talking about code completion in the editor or the interpreter? If it is in the editor does it help to add you delphi module to Tools, Options, IDE Options, Code Competion, Special packages? You need to restart PyScripter or the Language server. The other thing you could is to create a stub file for your python extension module (see for instance PyScripter: Completion with python extension modules such as PyQt5 and Pandas). Edited November 23, 2021 by pyscripter 1 Share this post Link to post
shineworld 73 Posted November 24, 2021 I will try surely! Thank you again. Python extension and support on our products were strong requirements from customers. Happy to know how simple is to do with py4d. Share this post Link to post
misc_bb 7 Posted January 24, 2022 @pyscripter Is the TPythonModule going to be use when importing libraries? I'm sorry, I'm still trying to figure out myself with P4D 🙂 Thank you! Share this post Link to post
pyscripter 689 Posted January 24, 2022 (edited) The TPythonModule is for using Delphi stuff in python scripts. To get started, look at the tutorials and demos. Edited January 24, 2022 by pyscripter Share this post Link to post