class Button(object): def onClick(self): result = PromptUser("Enter information") # do something with the result
result = None class Button1(object): def onClick(self): global result result = PromptUser("Enter information") class Button2(object): def onClick(self): global result if result is not None # do something with the result result = None
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.