<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Python Script/gui question in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-gui-question/m-p/488474#M38159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello i have a script which uses win32gui.messagebox to alert users of the data being processed and to confirm that the code continues to run. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works well and good when you run the script from the python window. Confirmations pop up, user clicks, program continues. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the script is run from the toolbox the gui pop ups are ignored and all you can do is close them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way to make the toolbox version run the same as the copy/pasta version?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2012 19:59:36 GMT</pubDate>
    <dc:creator>AnthonyTimpson2</dc:creator>
    <dc:date>2012-06-22T19:59:36Z</dc:date>
    <item>
      <title>Python Script/gui question</title>
      <link>https://community.esri.com/t5/python-questions/python-script-gui-question/m-p/488474#M38159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello i have a script which uses win32gui.messagebox to alert users of the data being processed and to confirm that the code continues to run. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works well and good when you run the script from the python window. Confirmations pop up, user clicks, program continues. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the script is run from the toolbox the gui pop ups are ignored and all you can do is close them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way to make the toolbox version run the same as the copy/pasta version?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 19:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-gui-question/m-p/488474#M38159</guid>
      <dc:creator>AnthonyTimpson2</dc:creator>
      <dc:date>2012-06-22T19:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script/gui question</title>
      <link>https://community.esri.com/t5/python-questions/python-script-gui-question/m-p/488475#M38160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try creating a script tool with the Python script as the source. You can add Python code to show progression (by %) and show messages on tool dialog. If you use a script tool you won't have to worry about validation - the framework takes care of validation. You can even &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/Customizing_script_tool_behavior/00150000000t000000/"&gt;customize validation&lt;/A&gt;&lt;SPAN&gt; if necessary. You can use such a tool just like any system tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are interested start here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/A_quick_tour_of_creating_script_tools/001500000006000000"&gt;A quick tour of creating script tools&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, you use either argv or arcpy.GetParameterAsText(index) to capture user input. You &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/Writing_messages_in_script_tools/00150000000p000000/"&gt;keep the user updated with messages&lt;/A&gt;&lt;SPAN&gt; using arcpy.AddMessage("message text"). To show progression, you can use SetProgressor, ResetProgressor and other progressor methods of arcpy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jun 2012 01:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-gui-question/m-p/488475#M38160</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-06-23T01:33:37Z</dc:date>
    </item>
  </channel>
</rss>

