471,337 Members | 1,177 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

interfacing Python interpreter with a VB6 frontend

I am trying something which appears (so far), that many other people
have not yet tried before - since I can't find any useful related
material despite several days of searching various sites/blogs etc.

I want to use VB6 as a front end for building a small GUI console that
accepts python commands at the command line and executes them, returning
any results to the VB6 window.

This requires several steps, but the one I am having most problem
finding info on is the ff:

1. using/interacting the Python interpreter from VB6

Any pointers/demos etc are very welcome - and if this has already been
done, please let me know, so I can learn from what someone else has done
Oct 3 '07 #1
5 1391
On Behalf Of Anonymous
This requires several steps, but the one I am having most
problem finding info on is the ff:

1. using/interacting the Python interpreter from VB6
One way to do this might be by creating a COM server with Python, and having
VB feed it lines of text and then collect results of execution for display.

win32com has demos of COM servers.

--
Regards,
Ryan Ginstrom

Oct 3 '07 #2


Ryan Ginstrom wrote:
>>On Behalf Of Anonymous
This requires several steps, but the one I am having most
problem finding info on is the ff:

1. using/interacting the Python interpreter from VB6


One way to do this might be by creating a COM server with Python, and having
VB feed it lines of text and then collect results of execution for display.

win32com has demos of COM servers.

--
Regards,
Ryan Ginstrom
Hi Ryan, do you have a link to the resources you mentioned?. I did a
search for win32com - and found this :
http://python.net/crew/mhammond/win32/FAQ.html (most of the links were
either dead, or refrerred to using COM from within Python - i.e. the
OTHER way round).
Oct 3 '07 #3
On 3 Oct, 11:07, Anonymous <no.re...@here.comwrote:
I am trying something which appears (so far), that many other people
have not yet tried before - since I can't find any useful related
material despite several days of searching various sites/blogs etc.

I want to use VB6 as a front end for building a small GUI console that
accepts python commands at the command line and executes them, returning
any results to the VB6 window.

This requires several steps, but the one I am having most problem
finding info on is the ff:

1. using/interacting the Python interpreter from VB6

Any pointers/demos etc are very welcome - and if this has already been
done, please let me know, so I can learn from what someone else has done
http://www.oreilly.com/catalog/pytho...pter/ch12.html

Oct 3 '07 #4
En Wed, 03 Oct 2007 07:53:15 -0300, Anonymous <no******@here.comescribi�:
Ryan Ginstrom wrote:
>One way to do this might be by creating a COM server with Python, and
having
VB feed it lines of text and then collect results of execution for
display.
win32com has demos of COM servers.

Hi Ryan, do you have a link to the resources you mentioned?. I did a
search for win32com - and found this :
http://python.net/crew/mhammond/win32/FAQ.html (most of the links were
either dead, or refrerred to using COM from within Python - i.e. the
OTHER way round).
win32com is part of the Python for Windows extensions by Mark Hammond:
https://sourceforge.net/projects/pywin32/

--
Gabriel Genellina

Oct 3 '07 #5
Anonymous wrote:
>
Ryan Ginstrom wrote:
>>On Behalf Of Anonymous
This requires several steps, but the one I am having most
problem finding info on is the ff:

1. using/interacting the Python interpreter from VB6

One way to do this might be by creating a COM server with Python, and having
VB feed it lines of text and then collect results of execution for display.

win32com has demos of COM servers.

--
Regards,
Ryan Ginstrom

Hi Ryan, do you have a link to the resources you mentioned?. I did a
search for win32com - and found this :
http://python.net/crew/mhammond/win32/FAQ.html (most of the links were
either dead, or refrerred to using COM from within Python - i.e. the
OTHER way round).
You might also want to pick up a copy of Hammond and Robinson's
"Programming Win32 in Python", which discusses various ways of
front-ending Python programs with VB interfaces.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden

Sorry, the dog ate my .sigline

Oct 3 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Bram Stolk | last post: by
1 post views Thread by benevilent | last post: by
reply views Thread by Fuzzyman | last post: by
5 posts views Thread by John Hunter | last post: by
28 posts views Thread by H J van Rooyen | last post: by
4 posts views Thread by Claire Blair | last post: by
15 posts views Thread by lixinyi.23 | last post: by
reply views Thread by Fredrik Lundh | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.