<?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: wxpython in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243982#M8320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone found a solution to this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 17:09:49 GMT</pubDate>
    <dc:creator>TonyHowze</dc:creator>
    <dc:date>2013-04-25T17:09:49Z</dc:date>
    <item>
      <title>wxpython</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243978#M8316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For those of you who have wxpython installed, try this:&amp;nbsp; In the Arcmap python window, type "import wx" and press Enter.&amp;nbsp; What do you get?&amp;nbsp; What I get is a complete crash of the entire Arcmap application.&amp;nbsp; I guess we're stuck with Tkinter until esri gets this fixed.&amp;nbsp; Comments?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Nov 2010 20:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243978#M8316</guid>
      <dc:creator>MikeHunter</dc:creator>
      <dc:date>2010-11-20T20:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: wxpython</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243979#M8317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which version of wx and Python are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QT with PyQT may be a more viable option, I know that behaves a lot better when embedded in apps with their own event loops.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 02:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243979#M8317</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-11-22T02:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: wxpython</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243980#M8318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jason, I'm using the Python2.6 that installed with Arcgis 10 and wxPython 2.8.11.0 Unicode.&amp;nbsp; But this is not new--I got the same result with Arcgis 9.3 (Python 2.5) if I tried to import wx in a toobox script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 20:48:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243980#M8318</guid>
      <dc:creator>MikeHunter</dc:creator>
      <dc:date>2010-11-22T20:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: wxpython</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243981#M8319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i used the import wx in ARCMap10.1 and it is crashed. any remedy to do it as i want to use the multimedia of wx in my application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 08:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243981#M8319</guid>
      <dc:creator>NadeemQazi</dc:creator>
      <dc:date>2013-04-04T08:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: wxpython</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243982#M8320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone found a solution to this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 17:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243982#M8320</guid>
      <dc:creator>TonyHowze</dc:creator>
      <dc:date>2013-04-25T17:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: wxpython</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243983#M8321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if you're still looking for a solution since it's been a while since this thread has been touched but it came up in my searches and I would like to offer a solution so that folks in the future can see it too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to get around this issue by writing a separate script, saving it as a .pyw (thus forcing pythonw.exe to read it, rather than python.exe) and then importing it as a 'library' into my main script.&amp;nbsp; Since I am at the moment writing a Python Add-in for Arc Catalog I'll use that as an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First you write the code that gives you your window/app/etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#!/usr/bin/python
#wxWorkAround.pyw

import wx

# This just gives up a blank, re-sizable window.
def main():
 app = wx.App()

 frame = wx.Frame(None, -1, 'simple.py')
 frame.Show()

 app.MainLoop()&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Lets say you were trying to have a window pop up when you clicked a button in a Python Add In) Save that script as a .pyw and then import it like you would any other script, and then call it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;class sampleButton(object):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """Implementation for GRRTool_addin.sampleButton (Button)"""
&amp;nbsp;&amp;nbsp;&amp;nbsp; def __init__(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.enabled = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.checked = False

&amp;nbsp;&amp;nbsp;&amp;nbsp; def onClick(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wxWorkAround.main()&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It has worked for me (at least within ArcCatalog), so I hope this helps somebody in the future.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/wxpython/m-p/243983#M8321</guid>
      <dc:creator>RyanForbes1</dc:creator>
      <dc:date>2021-12-11T12:11:24Z</dc:date>
    </item>
  </channel>
</rss>

