mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2025-01-15 20:51:57 +00:00
Initialize HistoryMonitor in TerminadoEventHandler callee
This commit is contained in:
parent
832aae0c32
commit
c9196dda75
@ -3,6 +3,7 @@ from tornado.ioloop import IOLoop
|
|||||||
from tfw.components.source_code_event_handler import SourceCodeEventHandler
|
from tfw.components.source_code_event_handler import SourceCodeEventHandler
|
||||||
from tfw.components.terminado_event_handler import TerminadoEventHandler
|
from tfw.components.terminado_event_handler import TerminadoEventHandler
|
||||||
from tfw.components.process_managing_event_handler import ProcessManagingEventHandler
|
from tfw.components.process_managing_event_handler import ProcessManagingEventHandler
|
||||||
|
from tfw.components.history_monitor import BashMonitor
|
||||||
from tfw.config import TFWENV
|
from tfw.config import TFWENV
|
||||||
from tfw.message_sender import MessageSender
|
from tfw.message_sender import MessageSender
|
||||||
from tfw.networking.event_handlers.server_connector import ServerUplinkConnector
|
from tfw.networking.event_handlers.server_connector import ServerUplinkConnector
|
||||||
@ -41,7 +42,7 @@ toggle_next.button_state = False
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
ide = SourceCodeEventHandler(key='webide', directory=TFWENV.WEBIDE_WD, exclude=['*.pyc'])
|
ide = SourceCodeEventHandler(key='webide', directory=TFWENV.WEBIDE_WD, exclude=['*.pyc'])
|
||||||
terminado = TerminadoEventHandler(key='shell')
|
terminado = TerminadoEventHandler(key='shell', monitor=BashMonitor(TFWENV.HISTFILE))
|
||||||
terminado.historymonitor.subscribe_callback(cenator)
|
terminado.historymonitor.subscribe_callback(cenator)
|
||||||
terminado.historymonitor.subscribe_callback(selectdir)
|
terminado.historymonitor.subscribe_callback(selectdir)
|
||||||
terminado.historymonitor.subscribe_callback(toggle_next)
|
terminado.historymonitor.subscribe_callback(toggle_next)
|
||||||
|
Loading…
Reference in New Issue
Block a user