Recent

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

schuler

  • Full Member
  • ***
  • Posts: 179
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: 3809
  • Leandro Diaz
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 »
https://lainz.github.io/
Download LazPaint https://lazpaint.github.io/
Download BGRABitmap and BGRAControls https://github.com/bgrabitmap

 

TinyPortal © 2005-2018