<?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: The Error of &amp;quot;TypeError: GPToolDialog() takes at most 1 argument (2 given)&amp;quot; in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334247#M26052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there a space before the dot and tbx? ie&amp;nbsp; . tbx&lt;/P&gt;&lt;P&gt;could you format your code &lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;Code Formatting... the basics&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 17:51:59 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-01-03T17:51:59Z</dc:date>
    <item>
      <title>The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334234#M26039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to click a button that I created in python add-in to execute a model (this model is made of the script tool), the button1 is ok, but when I click the button2 or button3 on the toolbar, it has an error as the title. Below are&amp;nbsp;the pictures of my code and error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/391966_1.PNG" style="width: 620px; height: 449px;" /&gt;&lt;/P&gt;&lt;P&gt;Fig.1 code&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/391965_2.PNG" style="width: 620px; height: 333px;" /&gt;&lt;/P&gt;&lt;P&gt;Fig.2 error (look at the black part of error dialog, this error dialog repeats almost 50 times!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for your reply, thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334234#M26039</guid>
      <dc:creator>fengchen1</dc:creator>
      <dc:date>2018-01-02T22:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334235#M26040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure I follow... your pythonaddins.gptooldialog does provide two parameters to it... how many are there supposed to be? the path to the toolbox filename? or the 'service area' or 'find_route' option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:30:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334235#M26040</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-02T22:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334236#M26041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I click button2 (the second button on the toolbar on figure 2), I want to execute "make service area" and button3 is about "find route". So could you please tell me how to revise the code to fulfile the function that I want. Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:40:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334236#M26041</guid>
      <dc:creator>fengchen1</dc:creator>
      <dc:date>2018-01-02T22:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334237#M26042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Re: that error message, you should be able to ignore it. &amp;nbsp; Check out my post&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/74093-tip-python-addins-getting-custom-toolstoolbox-to-work-gptooldialog-error-and-other-tips-822017"&gt;https://community.esri.com/thread/74093-tip-python-addins-getting-custom-toolstoolbox-to-work-gptooldialog-error-and-other-tips-822017&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334237#M26042</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-01-02T22:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334238#M26043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the help for that function.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/python-addins/the-pythonaddins-module.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/python-addins/the-pythonaddins-module.htm"&gt;The pythonaddins module—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think your problem is that tool names cannot include underscores. This breaks the arcpy.gp tool name parsing as in python tools use the convention toolname_alias.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/main/understanding-tool-syntax.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/main/understanding-tool-syntax.htm"&gt;Understanding tool syntax—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334238#M26043</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-01-02T22:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334239#M26044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cool... a bug&amp;nbsp;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDg5MjUz"&gt;http://support.esri.com/en/bugs/nimbus/TklNMDg5MjUz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to an old link which no longer exists "&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #595959; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next',Avenir,'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: 0px; line-height: 26.35px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fforums.arcgis.com%2Fthreads%2F84618-Tip-Python-Addin-getting-custom-tools-toolbox-to-work-GPToolDialog" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/84618-Tip-Python-Addin-getting-custom-tools-toolbox-to-work-GPToolDialog&lt;/A&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;for old software???&lt;/P&gt;&lt;P&gt;Does it still persist in 10.5.1 since I don't use addins&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334239#M26044</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-02T22:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334240#M26045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the model cannot be executed no matter the error is ignored or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334240#M26045</guid>
      <dc:creator>fengchen1</dc:creator>
      <dc:date>2018-01-02T22:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334241#M26046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found it&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/75339"&gt;Tip: Python Addins - getting custom tools/toolbox to work - GPToolDialog error and other tips (9/7/2017)&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:52:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334241#M26046</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-01-02T22:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334242#M26047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use arcmap10.4 and is it still a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334242#M26047</guid>
      <dc:creator>fengchen1</dc:creator>
      <dc:date>2018-01-02T22:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334243#M26048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;feng,&amp;nbsp;the error message really makes me think your use of underscores in your tool name is the problem. Have you tried renaming your tool so the name does not include an underscore? For example "ServiceArea" not "Service_Area". You can give the tool pretty &lt;EM&gt;label&lt;/EM&gt; ("Feng's Service Area", but the tool &lt;EM&gt;name&lt;/EM&gt; can't have any special characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 05:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334243#M26048</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-01-03T05:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334244#M26049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rebecca.&lt;/P&gt;&lt;P&gt;I tried your post and renamed the tool, but it still has the same problem. Below are the pictures of my revised code and steps. Could you please help me to check the problem? Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392040_1.PNG" style="width: 620px; height: 539px;" /&gt;&lt;/P&gt;&lt;P&gt;Fig.1&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392041_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Fig.2 the contents of the Install folder&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392042_3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fig.3 the contents of the script folder&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334244#M26049</guid>
      <dc:creator>fengchen1</dc:creator>
      <dc:date>2018-01-03T15:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334245#M26050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Curtis.&lt;/P&gt;&lt;P&gt;I tried the link and renamed the tool, but it still has the same problem. Below are the pictures of my revised code and steps. Could you please help me to check the problem? Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392043_1.PNG" style="width: 620px; height: 539px;" /&gt;&lt;/P&gt;&lt;P&gt;Fig.1&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392044_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Fig.2 the contents of the Install folder&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392045_3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fig.3 the contents of the script folder&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334245#M26050</guid>
      <dc:creator>fengchen1</dc:creator>
      <dc:date>2018-01-03T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334246#M26051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few things to try..&lt;/P&gt;&lt;P&gt;- try using the variable toolPath in place of the path in the GPToolDialog lines.&lt;/P&gt;&lt;P&gt;- try commenting out the MessageBox&amp;nbsp;line. &amp;nbsp;I haven't had much luck with that. At least eliminate that as an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the ServiceArea tool in your inbox pointing to the addin_addin.py &amp;nbsp; And is FindRoute pointing to addin_addin2.py? &amp;nbsp;And are these checked on a relative paths? &amp;nbsp;Typically my scripts in my Scripts founders are named closer to the tool the would be attached (vs a name like addin.py). &amp;nbsp;I have on .py in the scripts folder for each tool. &amp;nbsp;The actual addin.py that will be ru &amp;nbsp;to created the add will be in the install folder. &amp;nbsp;Although you may edit tweak this file, it is created when you use the wizard to initially create&amp;nbsp;the addin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i mention on the blog, when you start editing the files direct, you will want to make sure all the variables/IDs keep in sync. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: &amp;nbsp;also, make sure the tools run from the toolbox itself too, if you haven't already tested. &amp;nbsp;This should help you determine if there is an issue with finding the .py file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334246#M26051</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-01-03T16:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334247#M26052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there a space before the dot and tbx? ie&amp;nbsp; . tbx&lt;/P&gt;&lt;P&gt;could you format your code &lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;Code Formatting... the basics&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 17:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334247#M26052</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-03T17:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334248#M26053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dan, thanks for your suggestion. Below is my formatted code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; pythonaddins
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os
relPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dirname&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;__file__&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
toolPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; relPath &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"\Gavle.tbx"&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;button1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;object&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;__init__&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;checked &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;onClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; button2&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; button3&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pythonaddins&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MessageBox&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Welcome to Gavle medical system!\n"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Gavle medical"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;button2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;object&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;__init__&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;checked &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;onClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pythonaddins&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GPToolDialog&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;toolPath&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Servicearea"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;button3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;object&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;__init__&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;checked &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;onClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pythonaddins&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GPToolDialog&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;toolPath&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Findroute"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried all the methods in comments, but it still not works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334248#M26053</guid>
      <dc:creator>fengchen1</dc:creator>
      <dc:date>2021-12-11T15:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334249#M26054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rebecca,&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;for your suggestions. I checked all the things you mentioned and revise my code and I tried so many times even create a new work, but it still not works.&lt;SPAN&gt;&amp;nbsp;I feel so desperate.&amp;nbsp;&lt;/SPAN&gt;I am a beginner of python, so maybe I did something&amp;nbsp;wrong. &amp;nbsp;If possible, could you please show me some of your folders (addin, Install and script) and python add-in wizard, because I want to compare your&amp;nbsp;folder and my folder to find some differences? &amp;nbsp;The folder that I want to see as below. And I have a question. When I try to&amp;nbsp;move the script &lt;SPAN&gt;addin_addin.&lt;/SPAN&gt;&lt;SPAN&gt;py&lt;/SPAN&gt; automatically created by wizard&amp;nbsp;to&amp;nbsp;the Script folder, I find the "&lt;SPAN&gt;addin_addin.&lt;/SPAN&gt;py" in the Script folder is not the actual &lt;SPAN&gt;addin_addin.&lt;/SPAN&gt;&lt;SPAN&gt;py, so I think maybe&amp;nbsp;it is&amp;nbsp;a&amp;nbsp;problem but&amp;nbsp;I&amp;nbsp;don't&amp;nbsp;know&amp;nbsp;how to fix&amp;nbsp;that&lt;/SPAN&gt;. Do you know how to fix&amp;nbsp;it? Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392148_1.1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Fig.1 addin&amp;nbsp;folder&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392149_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Fig.2 Install folder&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392150_3.PNG" style="width: 620px; height: 555px;" /&gt;&lt;/P&gt;&lt;P&gt;Fig.3 python add-in wizard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 12:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334249#M26054</guid>
      <dc:creator>fengchen1</dc:creator>
      <dc:date>2018-01-04T12:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334250#M26055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not in the office right now, so can't test anything specific, but from my blog, thus us the process I follow..&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Some of this info is scattered around the forums (but the online help is lacking right now), so I thought it may help to consolidate what worked for me, in case it helps others. This is how I was able to get the GPToolDialog to work with my custom python tools/toolbox:&lt;BR /&gt;-Copy your .tbx file into the addin wizards "Install" folder.&lt;BR /&gt;-Create a "scripts" folder in the same location&lt;BR /&gt;-Copy all &lt;STRONG&gt;your&lt;/STRONG&gt; .py script to this folder&lt;BR /&gt;-Open the .tbx in the Install folder, make sure "relative path" is checked, and re-point all the tools to the new script location&lt;BR /&gt;-the "import os" and the "relPath = " line seem to be the key....see sample code below&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't want to move the .py files created be the wizard, only the .py files you wrote that are associated with your custom tools for you custom toolbox. &amp;nbsp;Again, testing that the tools work in this location, with your scripts here is&amp;nbsp;important. You want to make sure they are not still linking to the original path/location. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mention you're new to Python and tools. &amp;nbsp;Are you using the tool's built in dialog (tool parameter ) and setting up the parameters you are prompting for? &amp;nbsp;And is your program grabbing the parameters correctly? &amp;nbsp;Again, these are thing that need to be working before wrapping them in the addin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for a full sample of how I setup addins, you can download and look at &lt;A href="https://community.esri.com/blogs/myAlaskaGIS/2015/08/31/python-addin-for-data-inventory-and-broken-link-repair?sr=search&amp;amp;searchId=a7911b3d-6068-4d16-aaa6-8b0e8b710ffc&amp;amp;searchIndex=1"&gt;/blogs/myAlaskaGIS/2015/08/31/python-addin-for-data-inventory-and-broken-link-repair?sr=search&amp;amp;searchId=a7911b3d-6068-4d16-aaa6-8b0e8b710ffc&amp;amp;searchIndex=1&lt;/A&gt;‌ &amp;nbsp; &amp;nbsp;An .addin file is basically just a zipped file, so you can rename and very all the files. &amp;nbsp;It may be helpful to look at one that is working. &amp;nbsp;This is my pattern, but it is not the only option. &amp;nbsp;Others may have their own method.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 12:38:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334250#M26055</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-01-04T12:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334251#M26056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px #fff; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;os&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px #fff; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px #fff; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px #fff; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px #fff; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;dirname&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px #fff; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px #fff; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;__file__&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px #fff; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;yields a&amp;nbsp;&lt;STRONG&gt;NameError: name '__file__' is not defined&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;so there are still pieces missing for me...&lt;/P&gt;&lt;P&gt;Follow the advice given by Rebecca or revisit your need for an add-in rather than a conventional toolbox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 12:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334251#M26056</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-04T12:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: The Error of "TypeError: GPToolDialog() takes at most 1 argument (2 given)"</title>
      <link>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334252#M26057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I totally agree with Dan that you may want to revisit your setting this up as an addin, they are far more complicated and are only really needed in specific situations. From what I can tell your workflow could be far easier to accomplish using a script tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 06:11:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-error-of-quot-typeerror-gptooldialog-takes-at/m-p/334252#M26057</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-01-11T06:11:25Z</dc:date>
    </item>
  </channel>
</rss>

