[6.2.1] scripting gui ?

what scripting language can interact with photon.
I was looking for perl module but didn’t success,
but I can use any other [tcl, python, php, ruby, rex …]
any advices/recommendation ?

thanks for you time


dominix

DominiX wrote:

what scripting language can interact with photon.
I was looking for perl module but didn’t success,
but I can use any other [tcl, python, php, ruby, rex …]
any advices/recommendation ?

thanks for you time


dominix

Do you mean script existing applications (AppleScript style) or write
new QNX apps using a high level language?

If it’s the former, then, AFAIK there is no easy way to script Photon
apps which do not have support for scripting built in.

If it’s the latter, then maybe look at:

http://sourceforge.net/projects/pyqnx/

There is Java/SWT too, OK, it’s not scripting language, but looks pretty
good.

Cheers

Garry

“DominiX” <dominix@despamed.com> wrote in message
news:c6dbcs$3r5$1@inn.qnx.com

what scripting language can interact with photon.
I was looking for perl module but didn’t success,
but I can use any other [tcl, python, php, ruby, rex …]
any advices/recommendation ?

thanks for you time

Take a look at Cogent products (http://www.cogent.ca)
Their Gamma scripting engine with Photon binding is probably what you need.

// wbr

ici même:c6g6df$73p$1@inn.qnx.com,
Garry <garry@bigoldfakeemailaddress.com> a écrit

DominiX wrote:
what scripting language can interact with photon.
I was looking for perl module but didn’t success,
but I can use any other [tcl, python, php, ruby, rex …]
any advices/recommendation ?

thanks for you time


dominix



Do you mean script existing applications (AppleScript style) or write
new QNX apps using a high level language?

If it’s the former, then, AFAIK there is no easy way to script Photon
apps which do not have support for scripting built in.

If it’s the latter, then maybe look at:

yes


http://sourceforge.net/projects/pyqnx/

many thanks

There is Java/SWT too, OK, it’s not scripting language, but looks
pretty good.

I’ve think of it but I’m not ready for.

thanks for input.
– dominix

ici même:c6g7ru$80l$1@inn.qnx.com,
Ian Zagorskih <ianzag@megasignal.com> a écrit

“DominiX” <> dominix@despamed.com> > wrote in message
news:c6dbcs$3r5$> 1@inn.qnx.com> …
what scripting language can interact with photon.
I was looking for perl module but didn’t success,
but I can use any other [tcl, python, php, ruby, rex …]
any advices/recommendation ?

thanks for you time

Take a look at Cogent products (> http://www.cogent.ca> )
Their Gamma scripting engine with Photon binding is probably what you
need.

… looks like, I’ll try it.

ici même:c6g6df$73p$1@inn.qnx.com,
Garry <garry@bigoldfakeemailaddress.com> a écrit

DominiX wrote:
what scripting language can interact with photon.
I was looking for perl module but didn’t success,
but I can use any other [tcl, python, php, ruby, rex …]
any advices/recommendation ?

thanks for you time


dominix



Do you mean script existing applications (AppleScript style) or write
new QNX apps using a high level language?

If it’s the former, then, AFAIK there is no easy way to script Photon
apps which do not have support for scripting built in.

If it’s the latter, then maybe look at:

http://sourceforge.net/projects/pyqnx/

the question remain , does it have a gui that interface photon ?

– dominix

DominiX wrote:

ici même:c6g6df$73p$> 1@inn.qnx.com> ,
Garry <> garry@bigoldfakeemailaddress.com> > a écrit

DominiX wrote:

what scripting language can interact with photon.
I was looking for perl module but didn’t success,
but I can use any other [tcl, python, php, ruby, rex …]
any advices/recommendation ?

thanks for you time


dominix



Do you mean script existing applications (AppleScript style) or write
new QNX apps using a high level language?

If it’s the former, then, AFAIK there is no easy way to script Photon
apps which do not have support for scripting built in.

If it’s the latter, then maybe look at:

http://sourceforge.net/projects/pyqnx/



the question remain , does it have a gui that interface photon ?

No … Python doesn’t have an interface to Photon.

But there is Tkinter with Python mega widgets (Pmw) … it works with
XPhoton (A binary version of Python 2.3.3 + Tkinter + Pmw will be
available in the next days at ‘pyqnx’)

BTW … it is very easy to build for Python an interface wrapper
module for Photon by using Pyrex.
( http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex )

Pyrex modules are Python based + C data types. These extension modules
can be compiled to plain C modules, e.g. :

Calculate prime numbers (for Python with ‘C speed’)

def primes(int kmax):
cdef int n, k, i
cdef int p[1000]
result = []
if kmax > 1000:
kmax = 1000
k = 0
n = 2
while k < kmax:
i = 0
while i < k and n % p <> 0:
i = i + 1
if i == k:
p[k] = n
k = k + 1
result.append(n)
n = n + 1
return result

Best Regards

Armin

http://www.steinhoff-automation.com



– dominix

Armin Steinhoff wrote:

DominiX wrote:

ici même:c6g6df$73p$> 1@inn.qnx.com> ,
Garry <> garry@bigoldfakeemailaddress.com> > a écrit

DominiX wrote:

what scripting language can interact with photon.
I was looking for perl module but didn’t success,
but I can use any other [tcl, python, php, ruby, rex …]
any advices/recommendation ?

thanks for you time


dominix



Do you mean script existing applications (AppleScript style) or write
new QNX apps using a high level language?

If it’s the former, then, AFAIK there is no easy way to script Photon
apps which do not have support for scripting built in.

If it’s the latter, then maybe look at:

http://sourceforge.net/projects/pyqnx/



the question remain , does it have a gui that interface photon ?


No … Python doesn’t have an interface to Photon.

But there is Tkinter with Python mega widgets (Pmw) … it works with
XPhoton (A binary version of Python 2.3.3 + Tkinter + Pmw will be
available in the next days at ‘pyqnx’)

It’s available now … I have also added pysqlite and the newest version
of SQLite. It’s a reall fast database environment …
( http://www.sf.net/projects/pyqnx )

I will try to build a basic example which shows how to build a wrapper
module for Python/Photon with Pyrex …

Regards

Armin


BTW … it is very easy to build for Python an interface wrapper
module for Photon by using Pyrex.
( > http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex > )

Pyrex modules are Python based + C data types. These extension modules
can be compiled to plain C modules, e.g. :

Calculate prime numbers (for Python with ‘C speed’)

def primes(int kmax):
cdef int n, k, i
cdef int p[1000]
result = []
if kmax > 1000:
kmax = 1000
k = 0
n = 2
while k < kmax:
i = 0
while i < k and n % p > <> 0:
i = i + 1
if i == k:
p[k] = n
k = k + 1
result.append(n)
n = n + 1
return result

Best Regards

Armin

http://www.steinhoff-automation.com



– dominix