<?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 Custom Ribbon Button to Python Code in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/custom-ribbon-button-to-python-code/m-p/1659999#M74806</link>
    <description>&lt;P&gt;Hello! I have created a Python File that automatically runs a update of the current map the user is looking at to the AGOL.&amp;nbsp; However, I would like to add this as a button in their custom ribbons so they dont have to run a seperate file each time.&amp;nbsp; Does anyone know how to do this?&amp;nbsp; Below is the path of the py file I am hoping to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\GIS\Scripts\update_maps_fast.py&lt;/P&gt;</description>
    <pubDate>Thu, 23 Oct 2025 15:22:55 GMT</pubDate>
    <dc:creator>WrightDrew</dc:creator>
    <dc:date>2025-10-23T15:22:55Z</dc:date>
    <item>
      <title>Custom Ribbon Button to Python Code</title>
      <link>https://community.esri.com/t5/python-questions/custom-ribbon-button-to-python-code/m-p/1659999#M74806</link>
      <description>&lt;P&gt;Hello! I have created a Python File that automatically runs a update of the current map the user is looking at to the AGOL.&amp;nbsp; However, I would like to add this as a button in their custom ribbons so they dont have to run a seperate file each time.&amp;nbsp; Does anyone know how to do this?&amp;nbsp; Below is the path of the py file I am hoping to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\GIS\Scripts\update_maps_fast.py&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 15:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-ribbon-button-to-python-code/m-p/1659999#M74806</guid>
      <dc:creator>WrightDrew</dc:creator>
      <dc:date>2025-10-23T15:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Ribbon Button to Python Code</title>
      <link>https://community.esri.com/t5/python-questions/custom-ribbon-button-to-python-code/m-p/1660005#M74807</link>
      <description>&lt;P&gt;There might be a way to hack a specific tool into a ribbon button, but odds are you'll have to bundle your toolbox into a Pro Addon using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/index.html" target="_self"&gt;SDK Documentation&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 15:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-ribbon-button-to-python-code/m-p/1660005#M74807</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-10-23T15:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Ribbon Button to Python Code</title>
      <link>https://community.esri.com/t5/python-questions/custom-ribbon-button-to-python-code/m-p/1660550#M74813</link>
      <description>&lt;P&gt;Python buttons were dropped in the upgrade from ArcMap to ArcPro so as far as I know this is indeed the only way. You have to define the ribbon/tool using C# and a daml file then call the Python tool using the C# SDK.&lt;/P&gt;&lt;P&gt;It would be nice to have Python buttons back, since a lot of the time you don't need the baggage of the SDK to get what you need done and managing compiled extensions can be a pain.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 18:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-ribbon-button-to-python-code/m-p/1660550#M74813</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-10-24T18:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Ribbon Button to Python Code</title>
      <link>https://community.esri.com/t5/python-questions/custom-ribbon-button-to-python-code/m-p/1660797#M74819</link>
      <description>&lt;P&gt;You can format your script to use the .pyt interface and import it as a Toolbox if you want. I do that for most of my scripts since I'm too lazy to maintain C# extensions lol.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/creating-a-new-python-toolbox.htm" target="_self"&gt;Creating a new PYT toolbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't have any parameters, you can usually just copy and paste most of your script into the execute method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Oct 2025 01:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-ribbon-button-to-python-code/m-p/1660797#M74819</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-10-25T01:16:42Z</dc:date>
    </item>
  </channel>
</rss>

