Source code for mylinux.view.tuiElement.LogsForm
from __future__ import absolute_import
import npyscreen
from mylinux.libs import overrides, override
[docs]class LogsForm(npyscreen.ActionFormMinimal):
@overrides(npyscreen.ActionFormMinimal)
@overrides(npyscreen.ActionFormMinimal)
@overrides(npyscreen.ActionFormMinimal)
[docs] def create(self):
self.stdout = self.add(npyscreen.MultiLineEditableBoxed,
begin_entry_at=0,
rely=2,
max_height=29,
width=76,
name="Stdout",
scroll_exit=True)
self.stderr = self.add(npyscreen.MultiLineEditableBoxed,
begin_entry_at=0,
rely=31,
width=76,
max_height=6,
name="Stderr",
scroll_exit=True)
self.OK_BUTTON_TEXT = 'OK'
self.CANCEL_BUTTON_TEXT = 'EXIT'
self.init()
@override