def __init__(self, notebook): wx.TextCtrl.__init__(self, notebook, style=wx.TE_READONLY | wx.TE_MULTILINE) self._create_ui() self._add_to_notebook(notebook) self.SetFont(widgets.Font().fixed_log)
def __init__(self, notebook, log): wx.Panel.__init__(self, notebook) self._output = wx.TextCtrl(self, style=wx.TE_READONLY | wx.TE_MULTILINE) self._log = log self._add_to_notebook(notebook) self.SetFont(widgets.Font().fixed_log) self.Bind(wx.EVT_SIZE, self.OnSize)
def __init__(self, notebook, log): wx.Panel.__init__(self, notebook) self._output = wx.TextCtrl(self, style=wx.TE_READONLY | wx.TE_MULTILINE | wx.TE_NOHIDESEL) self._output.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown) self._log = log self._notebook = notebook self._add_to_notebook(notebook) self.SetFont(widgets.Font().fixed_log) self.Bind(wx.EVT_SIZE, self.OnSize)