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
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.