コード、
print 'hello world'
raw_input()
python idle 2.7 および lxterminal ("python helloworld.py") で実行すると "動作" します。
次に、Gambas3 を Python プログラミングのインタープリターとして使用してアプリケーションを作成しました。シミュレートすると、すべてが機能し、lxterminal は出力を表示し、Enter キーが押されると終了します。コンパイル後、ソフトウェアを実行可能ファイルにします。アプリケーションを実行し、EOF エラーをスローするコードを実行しました。Web を検索したところ、似たような問題がたくさん見つかりましたが、アプローチは異なります。理解できないパイプラインに関する何かを読みました。Python の使用オプション -i -tt と -c も追加しましたが、うまくいきませんでした。このエラーの原因は何ですか?
これは、誰かが尋ねた場合に備えて、Gambas3 の実行ボタンのコードでもありました。
Public Sub RunBtn_Click()
TextArea3.Text = ""
Try Kill Application.Path & "tempfile.py"
If Exist(Application.Path & "tempfile.py") Then
hFile = Open Application.Path &/ "tempfile.py" For Write Append
Else
hFile = Open Application.Path &/ "tempfile.py" For Write Create
Endif
Print #hFile, TextArea2.text
Wait 0.3
MyProc = Shell "lxterminal --command python -i -tt -c " & Application.Path &/ "tempfile.py" For Read As "Process"
MyProc1 = Shell "python -i -tt -c " & Application.Path &/ "tempfile.py" For Read As "Process"
End