Select to view content in your preferred language

How to Fire ArcGIS Tools Status Reporting after Running a Script

1116
3
03-01-2011 08:03 AM
BruceGreen
Occasional Contributor
Hi Guys
I have a question on how to run a simple arcpy script without deploying the ArcGIS running tool!
I have a very Simple code as:
from Tkinter import *
class MyApp:                         
    def __init__(self, myParent):      
        self.myContainer1 = Frame(myParent)
        self.myContainer1.pack()

        self.button1 = Button(self.myContainer1)
        self.button1["text"]= "Hello, World!"
        self.button1["background"] = "green"
        self.button1.pack()

root = Tk()
myapp = MyApp(root)  
root.mainloop()      

every thing goes fine but the only problem is (As shown in below screen shot) the ArcGIS tools status reporting remains on the screen and didn't exit until I cancel the TKinter frame!.
I just create a simple toolbox and add the script as a stand alone script to it.


Could you please let me know how I can get rid of the ArcGIS tool statues reporting box?
can you please provide me with any tutorial or sources to create a toolbar and add the script to it?

Best Reggrads
Tags (2)
0 Kudos
3 Replies
BruceGreen
Occasional Contributor
Please somebody help me!
0 Kudos
johnhayes
New Contributor
If you just want to create a toolbar with the script on it, first create the new toolbar. Then create a new button for it and follow the instructions detailed on this post.
0 Kudos
ChrisSnyder
Honored Contributor
Perhaps have a dummy script that launches the tkinter script? The dummy script (the one directly launched from the toolbox will finish, but the tkinter one will continue (but be independent from the toolbox and act as a stand alone script without ArcToolbox functionality - i.e. won't add output layers to the TableOfContents, etc.).

Is it just annoying to have the toolbox dialog, or something else? Seems that it really is "appropriate" that the toolbox dialog is there because the script is still actually running until something is clicked in the tkinter GUI, right?
0 Kudos