Welcome to the Gambas Forums
[Gambas-user] Bambas <---> Python
By: Pino Zollo
Rank: Starfleet Ensign
Postings: 0
From: n/a
Posted: Tue Dec 15, 2009 - 11:19 AM

>I lost too much time with things like that and now strongly consider
>to interface all calculation to Python and only keep GB as a GUI.

>This shouldn't add that many things to the system: as of Linux, Python
>is a std install, as of Debian, this will only require a few packages
>to add (AND it'll solve docs templates, PDF generation and some other
>dead-ends)

>Regards,
>JY

I am interested in that !!
Please JY how can I do it ? Can you provide an example ?

Python interfaces to FORTRAN and I would like to call from Gambas some FORTRAN
routines.

Regards

Pino


--
Key ID: 0xF6768208
Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208
Key server: hkp://wwwkeys.eu.pgp.net

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
By: "Jean-Yves F. Barbier"
Rank: Starfleet Ensign
Postings: 0
From: n/a
Posted: Tue Dec 15, 2009 - 11:40 AM

Pino Zollo a écrit :
>> I lost too much time with things like that and now strongly consider
>> to interface all calculation to Python and only keep GB as a GUI.
>
>> This shouldn't add that many things to the system: as of Linux, Python
>> is a std install, as of Debian, this will only require a few packages
>> to add (AND it'll solve docs templates, PDF generation and some other
>> dead-ends)
>
>> Regards,
>> JY
>
> I am interested in that !!
> Please JY how can I do it ? Can you provide an example ?
>
> Python interfaces to FORTRAN and I would like to call from Gambas some FORTRAN
> routines.

Unfortunately, the only way I see now is to call a Python subroutine
by SHELL or EXEC (but I'm terribly far away to know all about GB).

This will look ugly, but it is the only way to take the best of the 2 worlds:
GUI from GB, nice and accurate calculation from Python.

Apart ugliness, benefits can be large: think about directly writing .XLS
or .ODS or .PDF for your users, or use whatever templates systems you want
to generate nifty docs Smile

Regards
JY
--
"He flung himself on his horse and rode madly off in all directions."

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
 
Welcome Anonymous User
Tue Sep 07, 2010 - 12:00
Your Options:
· Log In
· Sign Up
Quick Search:
Quick Jump:
Change Language:
System Announcements
Latest Postings