Skip to content

Commit

Permalink
Merge pull request #30 from komsit37/pr/28
Browse files Browse the repository at this point in the history
Pr/28
  • Loading branch information
komsit37 authored Nov 6, 2020
2 parents 120ead7 + c0df702 commit 99a12d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion dependencies.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"*": {
"*": [
"StyledPopup",
"numpy"
]
}
Expand Down
5 changes: 2 additions & 3 deletions q_out_popup.py
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 99a12d4

Please sign in to comment.