The code,
print 'hello world'
raw_input()
"works" when ran in python idle 2.7 as well as in lxterminal ("python helloworld.py").
I then made an application thru Gambas3 using it as an interpreter for python programming. When simulating, everything works and the lxterminal shows the output and exits when the enter key was pressed. After compiling, making the software as an executable. Ran the application and ran the code it throws the EOF error. I searched the web, found lots of similar problems but different approach. I read something about pipe line something which I couldn't understand. I also added the python usage options -i -tt and -c but no luck. Any idea whats causing this error?
This was also my code for run button in Gambas3 incase someone ask.
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