PDA

View Full Version : regarding gambas


poposick
April 2nd, 2008, 11:14 AM
hello
im beginner in linux n gambas
i have one program that i create from c and one simple gui that i create with gambas. my purpose is, when i click the button then it will run my program.can i do that/?anyone?

pmasiar
April 2nd, 2008, 11:54 AM
Most people recommend Python for beginners, see sticky FAQ why and poll. Gambas is rarely used in Linux.

kalaharix
April 13th, 2008, 12:03 PM
Have you given up trying to get Glade to work with Python yet? :)

Getting your C program to run from Gambas is easy-peasy: just use the shell command!

e.g.
SHELL "htmldoc --bodyfont Sans --outfile /home/c/Documents/tfc.pdf --webpage /home/c/Documents/tfc.htm" WAIT
SHELL "lpr /home/c/Documents/tfc.pdf" WAIT


This example converts an HTML file to pdf using the application htmldoc and then prints the pdf using lpr. All from within Gambas.

Gambas rocks:guitar: