<?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 Moving a String to a StringVar in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/moving-a-string-to-a-stringvar/m-p/251502#M19372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the Entry Widget. In it I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;global HoldString&lt;/P&gt;&lt;P&gt;HoldString = StringVar()&lt;/P&gt;&lt;P&gt;HoldString.set("")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later I want the HoldString to have the value of a string that was made earlier like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc = "asdadad"&lt;/P&gt;&lt;P&gt;Trying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HoldString.set(abc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just gives me a cryptic&amp;nbsp;&amp;nbsp; PY_VAR0 when I try to print the value of HoldString&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I can only set it to a literal like HoldString("asdadad")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway move the value of a string to a StringVar?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 16:49:25 GMT</pubDate>
    <dc:creator>PaulHacker2</dc:creator>
    <dc:date>2016-07-28T16:49:25Z</dc:date>
    <item>
      <title>Moving a String to a StringVar</title>
      <link>https://community.esri.com/t5/python-questions/moving-a-string-to-a-stringvar/m-p/251502#M19372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the Entry Widget. In it I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;global HoldString&lt;/P&gt;&lt;P&gt;HoldString = StringVar()&lt;/P&gt;&lt;P&gt;HoldString.set("")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later I want the HoldString to have the value of a string that was made earlier like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc = "asdadad"&lt;/P&gt;&lt;P&gt;Trying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HoldString.set(abc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just gives me a cryptic&amp;nbsp;&amp;nbsp; PY_VAR0 when I try to print the value of HoldString&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I can only set it to a literal like HoldString("asdadad")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway move the value of a string to a StringVar?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/moving-a-string-to-a-stringvar/m-p/251502#M19372</guid>
      <dc:creator>PaulHacker2</dc:creator>
      <dc:date>2016-07-28T16:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a String to a StringVar</title>
      <link>https://community.esri.com/t5/python-questions/moving-a-string-to-a-stringvar/m-p/251503#M19373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;This doesn't appear to be directly a python problem... what are you using this in? perhaps a share there would be best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:11:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/moving-a-string-to-a-stringvar/m-p/251503#M19373</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-28T17:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a String to a StringVar</title>
      <link>https://community.esri.com/t5/python-questions/moving-a-string-to-a-stringvar/m-p/251504#M19374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, here is the whole shebang. For ArcGIS I am making a GUI to do importing of layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code uses ttk.Entry Widgets&lt;/P&gt;&lt;P&gt;&lt;IMG alt="monty.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/213807_monty.JPG" style="width: 620px; height: 282px;" /&gt;&lt;/P&gt;&lt;P&gt;My program (Monty.py that is attached) uses Entry Widget to display the pathname to files (using tkFileDialog.askopenfilename)&lt;/P&gt;&lt;P&gt;But the Entry requires a textvariable being equal to a StringVar() and I cannot get the pathname I picked up to load the name.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The black part of the JPG above is it printing what was displayed in the Entry box, but when it transferred the string to the StringVar for each of then it printed '&amp;lt;bound method StringVar.get of &amp;lt;Tkinter.StringVar instance...&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GeoScrip01 window is created by Monty.py for input of the two pathnames via two buttons, plus a Clear button, Submit Job button, and Quit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't give me 'C:/Users/phacker/Documents/ArcGIS/FAKEINPUT/counties.txt' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need that pathname (and others) to load GIS information later in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 21:25:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/moving-a-string-to-a-stringvar/m-p/251504#M19374</guid>
      <dc:creator>PaulHacker2</dc:creator>
      <dc:date>2016-07-28T21:25:58Z</dc:date>
    </item>
  </channel>
</rss>

