[python-win32] Compiling a Python Windows application
Bob Gailer
bgailer at alum.rpi.edu
Mon Dec 4 22:41:30 CET 2006
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
More information about the Python-win32
mailing list