[SVN] Revision 1464 (Python)

Brad Miller bonelake at mac.com
Sun Aug 7 22:35:45 UTC 2005


Thanks to Domenico Carbotta who sent Jeroen and I these nice python scripts in email.  This makes a really nice HTML output when you run a python script.  It also catches errors and provides clickable links on a backtrace.

Inspired by his script I added an additional hack that overrides the input and raw_input commands in the environment set up for the script.  The result is that if you call input or raw_input in your script you will now get a dialog box asking you for input.  The dialogs are pretty simple I just used EasyDialogs (again thanks to Domenico).  To get EasyDialogs to work you must run pythonw.
The HTML window reminds you of this if you have set your TM_PYTHON variable to something else.

I moved the cmd-r binding to this new version, but left the old command in place in case others prefer the old output.

Changed:
U   trunk/Bundles/Python.tmbundle/Commands/Python.plist
A   trunk/Bundles/Python.tmbundle/Commands/pymate.plist
A   trunk/Bundles/Python.tmbundle/Tools/pymate.py
A   trunk/Bundles/Python.tmbundle/Tools/pymate_output.py
U   trunk/Bundles/Python.tmbundle/info.plist



More information about the textmate-dev mailing list