示例#1
0
 def show_popup(self,
                content,
                flags=0,
                location=-1,
                max_width=320,
                max_height=240,
                on_navigate=None,
                on_hide=None):
     sublime_api.view_show_popup(self.view_id, location, content, flags,
                                 max_width, max_height, on_navigate,
                                 on_hide)
 def show_popup(self, view, point, text):
     width = 2 * math.floor(view.em_width()) * len(text)
     sublime_api.view_show_popup(view.view_id,
                                 view.word(point).begin(), text,
                                 sublime.HIDE_ON_MOUSE_MOVE_AWAY, width, 40,
                                 None, None)
示例#3
0
 def show_popup(self, content, flags=0, location=-1,
                max_width=320, max_height=240,
                on_navigate=None, on_hide=None):
     sublime_api.view_show_popup(
         self.view_id, location, content, flags, max_width, max_height,
         on_navigate, on_hide)