I have this code which shows the pop at the end of the word (specific location) each time the selection changes:
def on_selection_modified(self, view) :
if view.is_popup_visible():
# don't let the popup blink
return
...
region = view.sel()[0]
word_region = view.word(region)
location = word_region.end()
view.show_popup("html", flags=0, location=location, max_width=700)
But each time I change the selection, it blinks:
How can I keep the popup steady? i.e., no blinking.