import arcpy
from arcpy import env
import Tkinter as tk
import tkMessageBox
root = tk.Tk()
maintitle = tk.Label(root,"Add things to the list")
button1 = tk.Button(root,text="Help",commend=help_call)
buttonq = tk.Button(root,text="Quit",commend=quit_calll)
## do some logic in arcpy
found_one = 0
for field in fieldlist:
if field[0:3] == "RM_" # see is any fields start with RM_
found_one += 1
if found_one == 0:
lbAnswer = tkMessageBox.askquestion("No RM found"," not RM_ fields found create them?")
if (lbAnswer == "yes":
createthe_rm_fields(inputfile)
else:
root.destroy()
root.mainloop()
Still no fix for this in ArcGIS 10.5, it appears.