Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to design a custom dialog window where i can select various datasets of choice using scroll down option and specify some conditions and thresholds. Right now i am using python addins within arcgis 10.1 for toolbar and tools. I came across tkinter and wxpython as options for dialog box designing. Will there be a conflict between using tkinter or wxpython within addin scripting?

share|improve this question
2  
A wxPython example is here: Custom wxPython GUI’s: an approach for ArcGIS 10.1 –  blah238 Nov 22 '12 at 4:49
    
Thanks for helpful example. –  Ibe Nov 22 '12 at 5:11
    
@blah238 It looks like your link is broken - perhaps you have an updated one that you could add as an answer alongside mine. –  PolyGeo Apr 9 at 8:14

1 Answer 1

I found a technique to do this described at Another GIS Blog under the title of Python Add-Ins and Tkinter:

ArcGIS for Desktop does not support any python GUIs out of the box, but let's say we want to have a form pop-up anyway. ...

One way to do this is to create a wx python instance at start up, which is create before the desktop python loop is created. You would then reference the wx loop instead of the ArcGIS python loop.. but it's complicated... You can also see tons of forum posts like this, that describe how the in process causes python to crash with GUIs: ArcGIS 10.1 Python AddIn Using Multiprocessing crashes ArcMap?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.