def edit_fn(obj): tracing.tracefn_dialog(self.app.window, obj) refresh()
def add_fn(): trace_fn = tracing.TraceFunction("", "int") result = tracing.tracefn_dialog(self.app.window, trace_fn) if result: item.trace_tokens_functions.append(trace_fn) refresh()