HowTo:  Enable the color highlighting for PYT files in WingIDE

相关信息
Article ID: 40257
Software:
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms: N/A

问题描述
Instructions provided describe how to enable color highlighting of Python toolboxes (PYT files) in WingIDE.

Python toolboxes (.pyt) are geoprocessing toolboxes that are created entirely in Python. Although these tools are recognized by the ArcGIS Software as Python scripts, they may or may not be treated as Python scripts within various Python IDEs. To ensure that these files are recognized by a Python IDE it may be necessary to include the .pyt extension in the settings for your Python IDE.
已邀请:

易智瑞技术支持

赞同来自:

解决方案
The following steps show how to enable color highlighting on a Python toolbox that is being edited within WingIDE.
  1. Open WingIDE.
  2. Select Edit > Preferences.
  3. Locate the Files section of the Preferences window and select the option for 'File Types'.
  4. Below the section for 'Extra File Types', click the Insert Button. 
  5. In the New Value dialog, specify the file extension as .pyt and the Mime Type as Python. 
  6. Click OK.
  7. Click Apply and OK in the Preferences dialog.


创建及修改时间
Created: 5/14/2012

Last Modified: 7/10/2013
原文链接
http://support.esri.com/en/kno ... 40257

要回复问题请先登录注册