<?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: Get user input text in arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460530#M36078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm stuck on this same concept.&amp;nbsp; Any resolution here?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I want to do is be able to provide a text input box to the user.&amp;nbsp; For example, I want the user to "Enter a PIN:".&amp;nbsp; When they do, I search for that pin.&amp;nbsp; Zoom to the selected feature.&amp;nbsp; Buffer it by 100'.&amp;nbsp; Select all the features in the buffer.&amp;nbsp; Create mailing labels of all the features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything else is easy enough to do with a Python add-in, except Step 1:&amp;nbsp;&amp;nbsp; ASK THE USER FOR INPUT....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 18:41:38 GMT</pubDate>
    <dc:creator>JeffButurff</dc:creator>
    <dc:date>2013-02-08T18:41:38Z</dc:date>
    <item>
      <title>Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460517#M36065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to ask the user what name to give to a report.&amp;nbsp; I could use Tkinter to do this but it seem there should be something in arcpy to do it.&amp;nbsp;&amp;nbsp; Just pop up a little dialog ask for some text and return that text as a string.&amp;nbsp; Is there something like that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 18:12:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460517#M36065</guid>
      <dc:creator>WilliamIde</dc:creator>
      <dc:date>2012-06-07T18:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460518#M36066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could easily do that in a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_creating_script_tools/001500000006000000/"&gt;script tool&lt;/A&gt;&lt;SPAN&gt;, but I'm not sure of your workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 19:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460518#M36066</guid>
      <dc:creator>JoelCalhoun</dc:creator>
      <dc:date>2012-06-07T19:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460519#M36067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use raw_input to get user input in command line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;in_txt = raw_input('Enter your value :')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 03:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460519#M36067</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-06-08T03:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460520#M36068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To be clear.&amp;nbsp; I want a dialog by that pops up and asked the user to enter some text and press OK.&amp;nbsp;&amp;nbsp; Then I return the the main program and use the text create a report heading.&amp;nbsp; raw_input gave me an error "EOF found while reading."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 19:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460520#M36068</guid>
      <dc:creator>WilliamIde</dc:creator>
      <dc:date>2012-06-08T19:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460521#M36069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This isn't supported from ArcMap directly, the way for Python to interact with the user in the desktop environment is through GP tool dialogs. That is, write it as a script tool with the report name as a parameter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 20:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460521#M36069</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2012-06-08T20:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460522#M36070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you really want a pop-up dialog you can create a script tool. For your convenience I'm attaching a python script tool as a zip file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When unzipped, you'll see following files there:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PopUp.tbx - a toolbox containing a script too and a Model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pop_up_script - the source script of the tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;calling_script - how to call the tool from another stand-alone script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;python_window.txt - how to call the tool from Python window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap, browse to the location of the toolbox (unzipped folder). From the toolbox open the script tool - whatever text value you enter will be returned as a text. For this particular tool, it changes all character to upper case and returns it. If you need help - start here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_creating_script_tools/001500000006000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_creating_script_tools/001500000006000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2012 04:32:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460522#M36070</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-06-10T04:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460523#M36071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I didn't get the zip file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 16:06:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460523#M36071</guid>
      <dc:creator>WilliamIde</dc:creator>
      <dc:date>2012-06-12T16:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460524#M36072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry - here it is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 16:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460524#M36072</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-06-12T16:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460525#M36073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok I got the Zip file and am working with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still can't get it to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the code of calling_script.py&amp;nbsp; (I change to path to where I have it.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ImportToolbox(r"D:\Myprojects\Arcscripts\POPUP\PopUp.tbx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = arcpy.PopupInputBox_popup("A message from Popupbox")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the "PopupInputBox_popup" is not resolved and the script won't run.&amp;nbsp; Also the test model has a Red "X" in it and won't run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is much harder that using Tkinter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 16:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460525#M36073</guid>
      <dc:creator>WilliamIde</dc:creator>
      <dc:date>2012-06-13T16:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460526#M36074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Once you get used to it you'll love script tools &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Catalog tree, right-click on the script tool and select Properties...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Click on the second tab Source and check whether the path to the script is where you have saved your script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15181[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you still get error please email me at &lt;/SPAN&gt;&lt;A href="mailto:&amp;quot;nahmed@esri.com&amp;quot;" rel="nofollow"&gt;nahmed@esri.com&lt;/A&gt;&lt;SPAN&gt; - we'll post the result to the thread once solved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 16:17:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460526#M36074</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-06-13T16:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460527#M36075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nope All I get back is "A Message from popup box"&amp;nbsp; Which is the string going in. Nothing ever pops up.&amp;nbsp; I runs completes ARRRR...&amp;nbsp; I am done with the writing the code in Tkinter. took me about 10 min.&amp;nbsp; I run all the arcpy I need to get the job done.&amp;nbsp; Why isn't Tkinter supported?&amp;nbsp; I think it should be.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 20:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460527#M36075</guid>
      <dc:creator>WilliamIde</dc:creator>
      <dc:date>2012-06-13T20:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460528#M36076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;All I get back is "A Message from popup box"&amp;nbsp; Which is the string going in. Nothing ever pops up. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nothing will pop up - the tool that you are using is the dialog and substitutes the pop-up. You use it to get a string value from the user. So, in your case, the user will type the name of the report (a string), the script behind the code will capture the string and do whatever you want the script to do. The advantage is that you can chain this dialog (i.e., the tool) in ModelBuilder and any other Python or .Net or Java application. You can drag-drop this tool to an ArcMap toolbar - it will work as a button. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Why isn't Tkinter supported?&amp;nbsp; I think it should be.&amp;nbsp;&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason is TkInter's event loop does not work with ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can read through these forum threads where some users are able to use TkInter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/38292-Making-a-GUI-app?highlight=TkInter"&gt;http://forums.arcgis.com/threads/38292-Making-a-GUI-app?highlight=TkInter&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/58207-ArcPy-and-Tkinter?highlight=TkInter"&gt;http://forums.arcgis.com/threads/58207-ArcPy-and-Tkinter?highlight=TkInter&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/32040-Tkinter-GUI-Disconnect-with-ArcGIS-Script-Interface?highlight=TkInter"&gt;http://forums.arcgis.com/threads/32040-Tkinter-GUI-Disconnect-with-ArcGIS-Script-Interface?highlight=TkInter&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 20:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460528#M36076</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-06-13T20:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460529#M36077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In future releases of Arc 10.x.&amp;nbsp; It seems to me that ESRI could find out where the conflict is with Tkinter and&amp;nbsp; fix it.&amp;nbsp; ESRI seem to be using&amp;nbsp; Python as the main scripting language.&amp;nbsp; Which I think is a good idea.&amp;nbsp; But, if they are, they should adopt it fully and not just the scripting part.&amp;nbsp; That way we developers could bring the whole weight of the Vast python set of tool to bear on any problem we find.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460529#M36077</guid>
      <dc:creator>WilliamIde</dc:creator>
      <dc:date>2012-06-14T13:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460530#M36078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm stuck on this same concept.&amp;nbsp; Any resolution here?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I want to do is be able to provide a text input box to the user.&amp;nbsp; For example, I want the user to "Enter a PIN:".&amp;nbsp; When they do, I search for that pin.&amp;nbsp; Zoom to the selected feature.&amp;nbsp; Buffer it by 100'.&amp;nbsp; Select all the features in the buffer.&amp;nbsp; Create mailing labels of all the features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything else is easy enough to do with a Python add-in, except Step 1:&amp;nbsp;&amp;nbsp; ASK THE USER FOR INPUT....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 18:41:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460530#M36078</guid>
      <dc:creator>JeffButurff</dc:creator>
      <dc:date>2013-02-08T18:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460531#M36079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use a combobox to take the input. Make sure set the combobox's editable property to true. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Write your code inside the OnEnter event of the combobox.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 19:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460531#M36079</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2013-02-08T19:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460532#M36080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there no easy way to present a modal dialog box asking the user for input when they hit a button using a python add-in?&amp;nbsp; This was basic functionality in VBA in ArcGIS 8.0.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My client has a custom toolbar with 10 buttons on it, each representing a different type of "search".&amp;nbsp; When the user clicks a button, it presents a modal dialog box, asking for the "search item", such as PIN, ADDRESS, POLE_ID, etc.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My client would prefer this all be written in python for maintenance reasons, but it sounds like Python can't do this simple task...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 19:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460532#M36080</guid>
      <dc:creator>JeffButurff</dc:creator>
      <dc:date>2013-02-08T19:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460533#M36081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry Jeff &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; There is no TextBox add-in even in ArcObjects .Net SDK. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These controls are created through an IDE. You can use WxPython to create such controls. Here is a blog - check it out:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://betablogs.esri.com/beta/arcgis/2012/05/03/custom-wxpython-guis-an-approach-for-arcgis-10-1/"&gt;Custom wxPython GUI�??s: an approach for ArcGIS 10.1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The easy and safe is to create a script tool (with a string parameter in your case) and call &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/The_pythonaddins_module/014p00000021000000/"&gt;pythonaddins.GPToolDialog&lt;/A&gt;&lt;SPAN&gt;(.....) to pop-up that tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 21:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460533#M36081</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2013-02-08T21:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460534#M36082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Use a combobox to take the input. Make sure set the combobox's editable property to true. &lt;BR /&gt;&lt;BR /&gt;Write your code inside the OnEnter event of the combobox.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with this is that I want to accept a long string from the user, maybe one thousand characters. I can't expect them to enter that in a tiny combo box, and it would be especially lame to make a very large combo box that would use up valuable screen space even when it is not in use. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A popup window with a text box is what I want. Not a combo box, not a stupid script tool interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The TKinter internal loop back problem has been know about for a long time. Why not fix it already?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also, wxPython is not a python standard library. At my work place I am unable to install python libraries, so I am stuck with tkinter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 12:17:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460534#M36082</guid>
      <dc:creator>PatrickJurgens</dc:creator>
      <dc:date>2013-12-18T12:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460535#M36083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Thanks to Mr Nobbir for the zipped file. I'm searching for something like that more than a year&lt;/P&gt;&lt;P&gt;I would create an customized tool for cadastral search. I would to know how set this script to search a value in shapefile table, to return a message if the inputs value hasn't been found, or automaticaly sélect thé feature if the user inputs exist.&lt;/P&gt;&lt;P&gt;Thanks before&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460535#M36083</guid>
      <dc:creator>stevekenneth</dc:creator>
      <dc:date>2015-10-06T06:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get user input text in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460536#M36084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to ask the user for a "proposal number" and simply zoom in on that proposal. I can call the Pop-Up Box and enter the value for the "proposal". But that value is not being passed into "SelectByAttribute_management" (see code below). Python says "AttributeError 'module' object has no attribute". Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Importing Modules&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;#Call PopUpBox&lt;BR /&gt;try:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ImportToolbox(r"F:\Data\Arcadwin\Toolboxes\PopUp.tbx")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result=arcpy.PopupInputBox_popup("A message from popup box")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_val=result.getOutput(0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print in_val.upper()&lt;/P&gt;&lt;P&gt;except arcpy.ExecuteError:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages(2)&lt;/P&gt;&lt;P&gt;except Exception as ex:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print ex.args[0]&lt;/P&gt;&lt;P&gt;#Define WhereClause&lt;BR /&gt;WhereClause = '"MCPC_Num"' + "='" + str(in_val) + "'"&lt;/P&gt;&lt;P&gt;#Find the layer&lt;BR /&gt;mxd=arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;df=arcpy.mapping.ListDataFrames(mxd,"Layers")[0]&lt;/P&gt;&lt;P&gt;#Select by Attributes&lt;BR /&gt;arcpy.SelectByAttribute_management("Year 2015 Proposals", "NEW_SELECTION", WhereClause)&lt;/P&gt;&lt;P&gt;#Zoom to Selection&lt;BR /&gt;df.ZoomToSelectedFeatures()&lt;/P&gt;&lt;P&gt;#Refresh&lt;BR /&gt;arcpy.RefreshActiveView()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 18:34:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-user-input-text-in-arcpy/m-p/460536#M36084</guid>
      <dc:creator>WilliamMcLay</dc:creator>
      <dc:date>2015-10-06T18:34:09Z</dc:date>
    </item>
  </channel>
</rss>

