def on_donate_handle_activate(self, _widget):
        donate_dialog = DonateDialog()
        donate_dialog.run()
        donate_dialog.destroy()
Use this decorator on the dispatch method of a TemplateView subclass
dataset/ETHPy150Open thesamet/webilder/src/webilder/WebilderDesktop.py/WebilderDesktopWindow.on_donate_handle_activate--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/style/decorators.py/use_angular_js