This Tkinter function is causing my code to crash ArcMap10.1, is there anything wrong

المشرف العام

Administrator
طاقم الإدارة
The crash I'm getting is very generic, it just stops working, pops up with a window to send the code to ESRI. I talked to the ESRI help but they aren't making any headway and neither am I. Thought maybe one of you guys could look over this function and see if there's anything that might be causing this crash.

def gui3(CONVWGID, field, a, b, c): global mGui mGui = Tk() mGui.geometry("600x80+500+300") mGui.title("Attribute Selection Window") labeltext = "Please select an attribute to assign to the field: " + field + ", CONVWGID: " + str(CONVWGID) frame1 = Frame(mGui) frame1.pack() mLabel = Label(frame1, text = labeltext).grid(row=0, column=0) frame2 = Frame(mGui) frame2.pack() mButton = Button(frame2, text = a, command = lambda: assign(a)).grid(row=0, column=0, padx=10) mButton = Button(frame2, text = b, command = lambda: assign(b)).grid(row=0, column=1, padx=10) mButton = Button(frame2, text = c, command = lambda: assign(c)).grid(row=0, column=2, padx=10) mbutton = Button(mGui, text = 'EXIT TOOL', command = lambda: exittool()).pack() mGui.mainloop()

أكثر...
 
أعلى