473,387 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

python+windows/linux -> write stdout text to always on top text?

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.

Jul 19 '05 #1
3 1929
On 2 May 2005 13:14:02 -0700, flamesrock <fl********@gmail.com> wrote:
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.


Why would you want to do that ?

--
Swaroop C H
Blog: http://www.swaroopch.info
Book: http://www.byteofpython.info
Jul 19 '05 #2
hmm... I guess its not possible as I feared :(

thanks anyways

Jul 19 '05 #3
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.


Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Josh | last post by:
I've been trying to get Tix running with Python on Windows. Since there is no binary distributions of Tix for Windows, it seems the easiest way to install Tix is through IDiscovery's IDEStudio 1.9...
2
by: English Teacher | last post by:
Can someone suggest a good book for Python/Linux development? Thanks.
3
by: Tim Gahnstrom | last post by:
rdiff-backup is aperently written in Python and when I run it in a special way I get some funy Python errors. Does anyone know if linux python have some issues with working with fat32 or usb...
3
by: Brian Elmegaard | last post by:
Hi, I can find a few questions regarding the use of distutils for making non-python windows installers, but none of them really helps. Are there any pointers on how to do this? Can it be done? ...
3
by: bruce | last post by:
hi... i'm running rh8.0 with gnome.. i'm not sure of the version (it's whatever rh shipped). i've recently updated (or tried to update) python to the latest version. when i try to run the...
3
by: John Pye | last post by:
Hi all I have been working on some new code that embeds python in an C application. The embedding is working fine under Linux but crashing under Windows (XP) when I reach the following step. ...
20
by: W. Watson | last post by:
I downloaded python-2.5.msi and installed it. I believe its editor is IDE. I understand there's a Win editor called pythonwin. I believe it's in the download pywin32-210.win32-py2.5.exe, but I'm...
10
by: azrael | last post by:
Hy guys last night i was lying in my bed and thinking about something. is there any linux distro that is primary oriented to python. you know what i mean. no need for php, java, or something...
2
by: Anthony Perkins | last post by:
Hi everyone, What is the best GNU/Linux distribution (or the most preferred) for developing Python applications? Ideally I would like one with both Python *and* IDLE included on the install...
3
by: david | last post by:
You learn something new every day: On my ubuntu, update-manager is supposed to use the python2.5 installed on /usr/bin. Well, I had subsequently installed a whole bunch of stuff in /usr/local...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.