Package gui :: Module controller :: Class Redirect_text
[hide private]
[frames] | no frames]

Class Redirect_text

source code


The IO redirection to text control object.

Instance Methods [hide private]
 
__init__(self, control, log_queue, orig_io, stream=0)
Set up the text redirection object.
source code
 
flush(self)
Simulate the file object flush method.
source code
bool
isatty(self)
Answer that this is not a TTY.
source code
 
write(self, string)
Simulate the file object write method.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, control, log_queue, orig_io, stream=0)
(Constructor)

source code 

Set up the text redirection object.

Parameters:
  • control (wx.TextCtrl instance) - The text control object to redirect IO to.
  • log_queue (Queue.Queue instance) - The queue of log messages.
  • orig_io (file) - The original IO stream, used for debugging and the test suite.
  • stream (int) - The type of steam (0 for STDOUT and 1 for STDERR).
Overrides: object.__init__

isatty(self)

source code 

Answer that this is not a TTY.

Returns: bool
False, as this is not a TTY.

write(self, string)

source code 

Simulate the file object write method.

Parameters:
  • string (str) - The text to write.