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
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.