Integrating Python with Textpad

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Hemal
Posts: 5
Joined: Tue Feb 03, 2004 4:34 am

Integrating Python with Textpad

Post by Hemal »

How do I integrate Python with Textpad Any Tips :idea:
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Have you tried to do a search yet? 57 postings returned on "python":
http://www.textpad.com/forum/search.php?mode=results
Hope this was helpful.............good luck,
Bob
Hemal
Posts: 5
Joined: Tue Feb 03, 2004 4:34 am

Post by Hemal »

This is what I tried
I configured a tool in Textpad
Command: D:\Program Files\Python\pythonw.exe
Parameters: $File
Initial folder: $FileDir

It runs the active file as script but the check box for capturing output is greyed out :cry: Is there any way I can capture the output ??
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

Try using python.exe instead of pythonw.exe. Ought to allow you to capture output.
I choose to fight with a sack of angry cats.
Hefewiesen
Posts: 1
Joined: Sun Oct 09, 2005 4:28 pm

Capture Python output

Post by Hefewiesen »

It doesn't seem to work. Ran this trivial program. TP is configured to run
python.exe.

a = 'dead';
b = 'parrot';
c = 'sketch'

print a, b, c

All I got was

Tool completed successfully

What's up. If I don't capture output it works just fine
BonjovaX
Posts: 1
Joined: Thu Dec 08, 2011 3:29 am
Location: Cebu City

Post by BonjovaX »

It works on Python 2.7 8)
Under preferences:
use python.exe instead of pythonw.exe
Uncheck all then OK.

100% Works
Post Reply