List Info

Thread: Compiling a Python Windows application




Compiling a Python Windows application
user name
2006-12-04 21:41:30
Bokverket wrote:
> Hi Bob,
>
> [snip]
Please always reply to the list. Others may be able to
provide the next 
step, we all learn, and I was almost gone for a week and
would have left 
you in the dark.
>
> So maybe try your Python suggestion, if I can get it to
work.  You showed it 
> as Python being started first and then accessing Word,
but I suppose that 
> the other way that people suggested (use VB for dialog
boxes, then shell 
> Python) is OK, too. Can the parameters that were
entered in the dialog box 
> be made accessible to Python?
>   
Shell to start python, and pass command line arguments.
Retrieve them in 
Python using:
import sys
sys.argv # is a list of the arguments.
> Also, I suppose that Python can hold infinitely
(almost) long strings, like 
> a 400 page document?
>   
Limited only by memory.



-- 
Bob Gailer
510-978-4454

_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32
Compiling a Python Windows application
user name
2006-12-04 22:17:06
Bob Gailer wrote:
>> So maybe try your Python suggestion, if I can get
it to work.  You showed it 
>> as Python being started first and then accessing
Word, but I suppose that 
>> the other way that people suggested (use VB for
dialog boxes, then shell 
>> Python) is OK, too. Can the parameters that were
entered in the dialog box 
>> be made accessible to Python?
>>     

Shelling to Python is one method, but it is also possible to
write a COM
server in Python and instantiate it from VB just like any
COM object. 
If you actually need to pass data back and forth, that may
be a better way.

-- 
Tim Roberts, timrprobo.com
Providenza & Boekelheide, Inc.

_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32
Compiling a Python Windows application
user name
2006-12-07 03:19:41
PYPY would help because it is said to compile python programs what i would also recommend is prex and pysco

On 12/4/06, Tim Roberts < timrprobo.com"> timrprobo.com> wrote:
Bob Gailer wrote:
>;> So maybe try your Python suggestion, if I can get it to work. ; You showed it
>&gt; as Python being started first and then accessing Word, but I suppose that
>&gt; the other way that people suggested (use VB for dialog boxes, then shell
>> Python) is OK, too. Can the parameters that were entered in the dialog box
>&gt; be made accessible to Python?
&gt;>

Shelling to Python is one method, but it is also possible to write a COM
server in Python and instantiate it from VB just like any COM object.
If you actually need to pass data back and forth, that may be a better way.

--
Tim Roberts, timrprobo.com">timrprobo.com
Providenza & Boekelheide, Inc.

_______________________________________________
Python-win32 mailing list
Python-win32python.org"> Python-win32python.org
http://mail.python.org/mailman/listinfo/python-win32



--
http://www.goldwatches.com
Compiling a Python Windows application
user name
2006-12-07 17:31:47
James Matthews wrote:
> PYPY would help because it is said to compile python
programs what i
> would also recommend is prex and pysco

Your suggestions are all about deployment and optimization. 
They don't
particularly address the OP's problem.

-- 
Tim Roberts, timrprobo.com
Providenza & Boekelheide, Inc.

_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )