<?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 How can I alter this code to be stand alone using Tkinter? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-i-alter-this-code-to-be-stand-alone-using/m-p/342452#M26841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;getShapeFile = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;arcpy.Buffer_analysis(getShapeFile, bufferArea_shp, "500 Meters", "FULL", "ROUND", "ALL", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use Tkinter to create an interface that will mimic the above python script. I do not know how to get the shapefile via navigating to it. I know I can use &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;filename = askopenfilename() &lt;/P&gt;&lt;P&gt;to grab a file but it is not really getting the shapefile. (may need to specify getting only file that ends in shp?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess what I am really trying to figure out is how can I use an interface outside of ArcMap (i.e. a standalone script) to get the parameters I need? A pointer to some sample scripts would be helpful as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Jan 2015 00:09:58 GMT</pubDate>
    <dc:creator>BrendaJameson</dc:creator>
    <dc:date>2015-01-03T00:09:58Z</dc:date>
    <item>
      <title>How can I alter this code to be stand alone using Tkinter?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-alter-this-code-to-be-stand-alone-using/m-p/342452#M26841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;getShapeFile = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;arcpy.Buffer_analysis(getShapeFile, bufferArea_shp, "500 Meters", "FULL", "ROUND", "ALL", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use Tkinter to create an interface that will mimic the above python script. I do not know how to get the shapefile via navigating to it. I know I can use &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;filename = askopenfilename() &lt;/P&gt;&lt;P&gt;to grab a file but it is not really getting the shapefile. (may need to specify getting only file that ends in shp?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess what I am really trying to figure out is how can I use an interface outside of ArcMap (i.e. a standalone script) to get the parameters I need? A pointer to some sample scripts would be helpful as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2015 00:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-alter-this-code-to-be-stand-alone-using/m-p/342452#M26841</guid>
      <dc:creator>BrendaJameson</dc:creator>
      <dc:date>2015-01-03T00:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I alter this code to be stand alone using Tkinter?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-alter-this-code-to-be-stand-alone-using/m-p/342453#M26842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question... why do you want to build the GUI outside of ArcMap? The script will still need ArcMap to execute... If you use Tkinter to navigate to the .shp file you won't be able to use other formats like file geodatabase content.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2015 17:45:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-alter-this-code-to-be-stand-alone-using/m-p/342453#M26842</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-03T17:45:23Z</dc:date>
    </item>
  </channel>
</rss>

