Sublime Forum

Can I give more arguments to on_done?

#1

Hello its possible to give more arguments to on_done like I’m trying? because i can’t get it work

sublime.Window.show_input_panel(sublime.active_window(), "some text: ", "some text", self.on_done(self, arg1, arg2, arg3), None, self.on_cancel)
def on_done(self, input_user, arg1, arg2, arg3):
   print("input: %s"+input_user)
0 Likes

#2

You want to use functools.partial for that.

1 Like