Skip to content

Commit

Permalink
Docstrings added
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Jul 31, 2017
1 parent 6601e9a commit c938f46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spyder_terminal/widgets/terminalgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,23 @@


class ChannelHandler(QObject):
"""QWebChannel handler for JS calls."""

sig_ready = Signal()
sig_closed = Signal()

def __init__(self, parent):
"""Handler main constructor."""
QObject.__init__(self, parent)

@Slot()
def ready(self):
"""Invoke signal when terminal prompt is ready."""
self.sig_ready.emit()

@Slot()
def close(self):
"""Invoke signal when terminal process was closed externally."""
self.sig_closed.emit()


Expand Down

0 comments on commit c938f46

Please sign in to comment.