From c0df702c2b0f49cc255387dbdf4aa788556c8f22 Mon Sep 17 00:00:00 2001 From: Komsit Prakobphol Date: Fri, 6 Nov 2020 16:34:17 +0900 Subject: [PATCH] remove styled_popup since it cannot parse new json color scheme --- dependencies.json | 1 - q_out_popup.py | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dependencies.json b/dependencies.json index 149062f..503385d 100644 --- a/dependencies.json +++ b/dependencies.json @@ -1,7 +1,6 @@ { "*": { "*": [ - "StyledPopup", "numpy" ] } diff --git a/q_out_popup.py b/q_out_popup.py index 7185ab6..0d39ab0 100644 --- a/q_out_popup.py +++ b/q_out_popup.py @@ -1,6 +1,5 @@ from . import q_chain import sublime -import styled_popup #from qpython import qconnection #q = qconnection.QConnection(host = 'localhost', port = 5555) #q.open() @@ -26,7 +25,7 @@ def do(self, edit=None, input=None): self.rowcol = self.current_rowcol() self.rowcol = [max(0, self.rowcol[0] - 2), self.rowcol[1] + 10] self.to_rowcol(self.rowcol) - styled_popup.show_popup(self.view, self.html,on_hide=self.on_hide, on_navigate=self.on_navigate) + self.view.show_popup(self.html, on_hide=self.on_hide, on_navigate=self.on_navigate) self.to_rowcol(current) QOutPopupBaseCommand.TO_CLOSE = True QOutPopupBaseCommand.ACTUALLY_CLOSED = False @@ -56,7 +55,7 @@ def on_hide(self): print('reopen') rowcol = self.current_rowcol() self.to_rowcol(self.rowcol) - styled_popup.show_popup(self.view, self.html, on_hide=self.on_hide, on_navigate=self.on_navigate) + self.view.show_popup(self.html, on_hide=self.on_hide, on_navigate=self.on_navigate) self.to_rowcol(rowcol) except Exception as e: #will get exception when popup moves out of view, just close the pop up