Recent

Author Topic: Is there some use python as the logic part, and use pascal as ui part?  (Read 3580 times)

schuler

  • Full Member
  • ***
  • Posts: 223
Re: Is there some use python as the logic part, and use pascal as ui part?
« Reply #15 on: November 16, 2019, 01:49:26 pm »
I like coding on both object pascal (love Lazarus) and python.
It's possible to have UI in Lazarus and logic in python (I have never tried):
https://wiki.lazarus.freepascal.org/Using_Python_in_Lazarus_on_Windows/Linux

:) Wish everyone happy coding. :)

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Is there some use python as the logic part, and use pascal as ui part?
« Reply #16 on: November 16, 2019, 02:26:55 pm »
LazPaint uses python to be able to use scripts, it runs the script with python and with pipes it receives the commands, then executes with Pascal code these commands.

An alternative can be using Electron JS
https://www.fyears.org/2017/02/electron-as-gui-of-python-apps-updated.html
« Last Edit: November 16, 2019, 02:49:56 pm by lainz »

 

TinyPortal © 2005-2018