<?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 Re: Python Parameter Prompting in IDLE in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590499#M19565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Every IDE is different, but as an example, when you click to run a script in PythonWin, there is a section to add parameters. You can just specify your parameters here. Please see the attached screenshot as an example.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 18:35:39 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2013-07-03T18:35:39Z</dc:date>
    <item>
      <title>Python Parameter Prompting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590498#M19564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;While running a python script in IDLE that asks for arguments, no prompt appears that asks for parameters.&amp;nbsp; Same script in PythonWin runs fine.&amp;nbsp; A simple example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;x = sys.argv[1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;y = sys.argv[2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print x y&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PythonWin brings up a box to enter arguments (enter two numbers) and run script and it prints the numbers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDLE doesn't bring up a box or any prompt . . . . spins it's wheels for a few seconds then bombs saying no value entered.&amp;nbsp; Is there a setting I am missing when running scripts in IDLE that prompt for user input?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Same results if I use GetParameterAsText instead of sys.argv . . . . &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 16:24:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590498#M19564</guid>
      <dc:creator>TroyMullins</dc:creator>
      <dc:date>2013-07-03T16:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python Parameter Prompting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590499#M19565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Every IDE is different, but as an example, when you click to run a script in PythonWin, there is a section to add parameters. You can just specify your parameters here. Please see the attached screenshot as an example.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 18:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590499#M19565</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2013-07-03T18:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python Parameter Prompting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590500#M19566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Lucas . . . I know I probably wasn't clear . . . Yes, I get same thing in PythonWin as you, no problem. How would I get such a prompt to enter arguments when I run the same script in IDLE though? When run in IDLE, it processes for a few seconds, then crashes and says no values - never had a prompt like PythonWin though to enter values. Do you know how to do or configure that in IDLE?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 21:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590500#M19566</guid>
      <dc:creator>TroyMullins</dc:creator>
      <dc:date>2013-07-03T21:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Python Parameter Prompting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590501#M19567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Troy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I know there is no way for parameters in IDLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can run it from CMD window if you like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you cannot stop for debug you do not really important.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just replace the line "x = sys.argv[1]" with "x = SomeValue" when I want to run from IDLE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have fun&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 04:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590501#M19567</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2013-07-04T04:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python Parameter Prompting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590502#M19568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Every IDE is different, but as an example, when you click to run a script in PythonWin, there is a section to add parameters. You can just specify your parameters here. Please see the attached screenshot as an example.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi. could u tell me how can i get PythonWin IDLE?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JimmyGao&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 08:14:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590502#M19568</guid>
      <dc:creator>fenggao1</dc:creator>
      <dc:date>2013-07-04T08:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Python Parameter Prompting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590503#M19569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is information here: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/0021/002100000021000000.htm"&gt;http://resources.arcgis.com/en/help/main/10.1/0021/002100000021000000.htm&lt;/A&gt;&lt;SPAN&gt; but the link is broken.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find in google.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think PyScripter is much better, it has parameters too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have Fun&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 10:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/python-parameter-prompting-in-idle/m-p/590503#M19569</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2013-07-04T10:57:32Z</dc:date>
    </item>
  </channel>
</rss>

