[Tutor] Size of Python Console

Alan Gauld alan.gauld at btinternet.com
Sun Nov 23 10:05:37 CET 2008


"Wayne Watson" <sierra_mtnview at sbcglobal.net> wrote

> find away to set the size. One just brings up the program 
> and sets the width-height using the properties option in the 
> upper-left corner. Next  one saves them  when exiting.  

That only works on your PC, any other user needs to 
do the same thing. Creating a shortcut means you can 
redistribute it and the recipient gets whatever settings 
you set.

The shortcut needs to be to python.exe not the program 
file. Thus if your script is 

C:\MYSCRIPT\FOO.PY

and Python is in

C:\Python25\python25.exe

you need a shortcut to

C:\Python25\python25.exe C:\MYSCRIPT\FOO.PY

That should then have all the usual console properties.

If you build an installer to install the program at some 
other location then you can write a WSH script to create 
a shortcut programmatically at install time, but thats 
more tricky.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld



More information about the Tutor mailing list