[Gambas-user] Gambas to python

Ian Haywood ihaywood at ...1979...
Fri Aug 20 06:21:13 CEST 2010


On 8/20/10, jose <jose2190 at ...626...> wrote:
> Hello, I'm half a cumbersome problem, I try to run a shell to my mplayer
> variable declared as a process.
>
> What is the running mplayer python interactive console which I call a
> player, my problem is:
>
> Once called the SHELL ("python"), you run the console, but not how to
> enter new commands to the console.
>
> I tried to run SHELL ("import pygame") to write it in the terminal, but
> does not.
>
> Does anyone could tell me I'm doing wrong, or perhaps some example code?
Write a python program as a separate file (.py extension) and get it working
to do what you want.

Then run it from Gambas:

 Exec ["/usr/bin/python","/path/to/my/script.py"]

Ian




More information about the User mailing list