Sublime Forum

Show_quick_panel() got an unexpected keyword argument 'on_highlighted'

#1

When attempting to use the ‘on_highlighted’ keyword argument documented for window.show_quick_panel method, I get the error show_quick_panel() got an unexpected keyword argument 'on_highlighted'. Please advise?

0 Likes

#2

On a hunch I tried the keyword on_highlight and this works, but doesn’t match the docs.

0 Likes

#3

Yes. There are differences. The documentation is not correct on that one unfortunately

image

The correct argument names of course can be found in sublime.py

def show_quick_panel(self, items, on_select, flags=0, selected_index=-1, on_highlight=None, placeholder=None):
1 Like