Alexey-T / Python-for-Lazarus

Fork of Python4Delphi for Lazarus, supports Windows/Linux/macOS/*BSD/Solaris
MIT License
127 stars 42 forks source link

Command Line Sample #41

Closed JacoFourie closed 2 years ago

JacoFourie commented 2 years ago

Hi.

Do you have a sample where there is no forms but just command line app. I want to wrap Python code inside Lazarus so users can not read the code. But all samples use GUI forms.

Alexey-T commented 2 years ago

I don't have command line example, if Python4Delphi original repo don't have them.

JacoFourie commented 2 years ago

OK so are you saying the control can not be use in a command line app only?

Alexey-T commented 2 years ago

I think it can be used. In this repo, we have demo program with LCL forms. maybe demo can be rewritten to cmd-line.

JacoFourie commented 2 years ago

@Alexey-T if I look at this page at the bottom it shows command line only. But when I include your package in the project the code will not compile as it has Forms code in it. https://wiki.freepascal.org/Python4Delphi

image

JacoFourie commented 2 years ago

I got it working if I use GUI Forms. But I want to run it as non GUI in a terminal.

JacoFourie commented 2 years ago

OK I got it working thanks