For using show_quick_panel function I have read this,
sublime.active_window().show_quick_panel(
items, chosed_func
)
When some item is selected by user, chosed_func will be called. But there is a way to get index of selected item without redirecting to another function?
index = sublime.active_window().show_quick_panel(items)
print(items[index])