I understand you wish to reroute stdout to some object than can write to a
window - correct ?
If so, this is what I do with tkinter ....
class SC_Log_Stdout:
#*******************************************************************************
def __init__(self, p_log_text):
self.__m_log_text = p_log_text #graphics object - would be your game
engine I guess
#*******************************************************************************
def write(self,p_string):
try:
except:
pass
.
.
.
.
.
.
sys.stdout = SC_Log_Stdout(.....) #reroute stdout
.
.
.
#launch your game
flamesrock wrote:
> Hi,
>
> I'm curious if theres a way in python to write stdout text to the
> screen (ie top right) the way they do in some FPS games, so that its
> always on top, in an invisible window of some set dimensions. No matter
> what program is on top.
>
> Is there a way to make it cross platform?
>
> I've looked but nothing seems to turn up on the subject.
>
> -thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list