<?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: Is it possible to show a 'busy' mouse pointer while a addin tool is working? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-show-a-busy-mouse-pointer-while/m-p/338596#M26571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anybody?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will receive many internet points if you help me :cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2014 00:21:22 GMT</pubDate>
    <dc:creator>TimBarnes</dc:creator>
    <dc:date>2014-05-05T00:21:22Z</dc:date>
    <item>
      <title>Is it possible to show a 'busy' mouse pointer while a addin tool is working?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-show-a-busy-mouse-pointer-while/m-p/338595#M26570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a python addin tool which takes about 5-8 seconds to complete its processing which is just long enough for the user to wonder if it's working or not- Is it possible to either change the pointer to show the 'busy' icon or provide another way to show that the tool is working/busy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Originally I put a simple warning in a .messageBox saying 'This tool takes a while to work, please be patient' but this requires the user to click 'OK' every time which isn't ideal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 01:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-show-a-busy-mouse-pointer-while/m-p/338595#M26570</guid>
      <dc:creator>TimBarnes</dc:creator>
      <dc:date>2014-04-28T01:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a 'busy' mouse pointer while a addin tool is working?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-show-a-busy-mouse-pointer-while/m-p/338596#M26571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anybody?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will receive many internet points if you help me :cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 00:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-show-a-busy-mouse-pointer-while/m-p/338596#M26571</guid>
      <dc:creator>TimBarnes</dc:creator>
      <dc:date>2014-05-05T00:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a 'busy' mouse pointer while a addin tool is working?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-show-a-busy-mouse-pointer-while/m-p/338597#M26572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was waiting for someone to answer this....but I'm curious how this works (I haven't tried it yet), the cursor property of the tool class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//014p00000027000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//014p00000027000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cursor ID #2 is the hourglass....doesn't appear to be animated though, sorry (because that would be cool).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems there is *almost* an example here of it in action with __init__(self):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//014p0000001q000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//014p0000001q000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can't get it working, I'll take a shot at it when I get more time....but please post back if you do.&amp;nbsp; I see what you mean about letting users know it is actually working and not get click-happy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; The above applies to a tool - what if it is a 'button' add-in?....apparently there's an image property but I haven't played with that either and I don't know if you can change that during runtime (probably not because these props are stored in config.xml and by runtime I imagine it is not possible to reread properties):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Image (optional)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be a 16-by-16 pixel image used to symbolize your button. The image format should be one of the commonly used formats (that is, .bmp, .jpg, and so on). The image will be copied to the Images folder created in your add-in project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/button/014p0000001z000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/button/014p0000001z000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then again, the button class has a 'checked' property that shows the button as if in a depressed state (false by default, which is the 'undepressed' state).&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//014p00000029000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//014p00000029000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 01:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-show-a-busy-mouse-pointer-while/m-p/338597#M26572</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2014-05-05T01:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a 'busy' mouse pointer while a addin tool is working?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-show-a-busy-mouse-pointer-while/m-p/338598#M26573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mine is a button so I don't think the cursor properties will work unfortunately- I tried adding it but it just ignores it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The image for the button is listed in the config xml- I am using one of those, but it's simply an icon for the button and not dynamic (apart from through the 'checked' property)....I might look at changing that property though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'busy' cursor does appear &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;sometimes&lt;/SPAN&gt;&lt;SPAN&gt; by itself, but only when the code is being processed, it doesn't appear to show the 'busy' cursor when you are calling a geo-process or when that process is doing its thing....and those are the parts that take the longest time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it doesn't look like it's possible but your post was helpful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 03:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-show-a-busy-mouse-pointer-while/m-p/338598#M26573</guid>
      <dc:creator>TimBarnes</dc:creator>
      <dc:date>2014-05-06T03:41:32Z</dc:date>
    </item>
  </channel>
</rss>

