FAQ: What happens when the Open or Save dialog is cancelled within the pythonaddins module?
【相关信息】
Article ID: 40535
Software:
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms:
Windows XP, Server 2003, Vista, Server 2008, Windows 7
【问题描述】
What happens when the Open or Save dialog is cancelled within the pythonaddins module?
Article ID: 40535
Software:
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms:
Windows XP, Server 2003, Vista, Server 2008, Windows 7
【问题描述】
What happens when the Open or Save dialog is cancelled within the pythonaddins module?
1 个回复
EsriSupport
赞同来自:
The cancel operation returns the 'NoneType' object (None). This is similar to the boolean objects of True and False.
In addition to the dialog function, there is the MessageBox function which has a variety of button options based upon its defined type. This function returns a string value representing the message button pressed (i.e., 'Cancel', 'Ignore', 'Continue').
【创建及修改时间】
Created: 8/24/2012
Last Modified: 7/10/2013
【原文链接】
http://support.esri.com/en/kno ... 40535
要回复问题请先登录或注册