You are here: > ESRI Forums > arcgis desktop discussion forums > Thread Replies

ArcGIS Desktop Discussion Forums

ArcGIS Desktop - Geoprocessing Scripting (Python, JavaScript, VB) forum

Message Boxes with Python   Nick DeMerchant Nov 15, 2004
Re: Message Boxes with Python   Steve Salas Nov 15, 2004
Re: Message Boxes with Python   Ghislain Prince Nov 15, 2004
Re: Message Boxes with Python   Nick DeMerchant Nov 16, 2004
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Message Boxes with Python 
Author Nick DeMerchant 
Date Nov 15, 2004 
Message Just wondering if there is a way to have messages pop up on screen like with AML using Python? Mesage warning boxes or user input boxes for example? I haven't come accross this anywhere so not sure if it can be done,

Thanks for any info,

Nick 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Message Boxes with Python 
Author Steve Salas 
Date Nov 15, 2004 
Message Try Tkinter...
http://www.pythonware.com/library/tkinter/introduction/index.htm

I just started looking at this and it seems promising. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Message Boxes with Python 
Author Ghislain Prince 
Date Nov 15, 2004 
Message If you're going to be using this on windows only, you could use the windown api calls. Like demo'd below. 
 
import win32api
win32api.MessageBox(0,"msgbox", "title")
win32api.MessageBox(0,"ok cancel?", "title",1)
win32api.MessageBox(0,"abort retry ignore?", "title",2)
win32api.MessageBox(0,"yes no cancel?", "title",3)
2
 
  Ghislain Prince
ESRI 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Message Boxes with Python 
Author Nick DeMerchant 
Date Nov 16, 2004 
Message That is sweet Ghislain,

Thanks for the code. One last question, can I use code like this for printing a variable?

Can I also store user input into a variable?

Thanks for any more help...

Nick