本文整理匯總了Python中sublime.View.is_popup_visible方法的典型用法代碼示例。如果您正苦於以下問題:Python View.is_popup_visible方法的具體用法?Python View.is_popup_visible怎麽用?Python View.is_popup_visible使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sublime.View
的用法示例。
在下文中一共展示了View.is_popup_visible方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: prepare_data_tooltip
# 需要導入模塊: from sublime import View [as 別名]
# 或者: from sublime.View import is_popup_visible [as 別名]
def prepare_data_tooltip(
self, view: sublime.View, data: Dict[str, Any]) -> Any:
"""Prepare the returned data for tooltips
"""
merge_doc = get_settings(view, 'merge_signatures_and_doc')
if (data['success'] and 'No docstring' not
in data['doc'] and data['doc'] != 'list\n'):
try:
i = data['doc'].split('<br>').index("")
except ValueError:
self.signature = data['doc']
self.doc = ''
if self._signature_excluded(self.signature):
return
return self._show_popup(view)
if merge_doc:
self.doc = '<br>'.join(data['doc'].split('<br>')[i:]).replace(
" ", " ")
self.signature = '<br> '.join(
data['doc'].split('<br>')[0:i])
if self.signature is not None and self.signature != "":
if not self._signature_excluded(self.signature):
return self._show_popup(view)
if view.is_popup_visible():
view.hide_popup()
view.erase_status('anaconda_doc')