Make Python code open in a simple window on Windows - python

I wrote some simple Python code which prints out a few lines of text every minute. I want to keep it open on my desktop, kind of like a live ticker. Is there a way to open the code in a new window which doesn't have a blinking cursor and takes up as little space as possible?

Related

Closing a file and come back to an especific window

I developed a GUI, which cointain 3 windows, to display some tutorials. It's working but when I open a file(tutorial) and finish reading it, I would like to close it and come back to the second Window, however the GUI returns to the first one. How can I fix it?
This is the sequence:
First Window
Second Window
Opened Tutorial
First Window

Python script to close a specific window when it opens

I am searching for a way to close a specific window of a program immediately after it opens. Specifically, I am using the BUFF addon for Overwolf and after every game I play, this annoying overlay window opens up and blocks part of my screen. To close it windows Alt+Tab'ing out, I need to wait 10 seconds (that means if I'm not willing to subscribe to BUFF premium), and Alt+Tab'ing out after every game is just as annoying.
Is there any way that I can run a Python script while I'm playing that closes this window every time it opens immediately? I'm thinking of something that continously searches for a window with a specific name or maybe something that listens for the event of a window opening and then checking its name/title. I don't even know if Python can access these processes, but I guess it's worth to just ask.
And before I need to edit the post, I'm using Windows 11.

how do you run a python code without the program showing in the taskbar

I wrote a python keylogger(dont worry im using it as a assistant and not doing illegal stuff) but I dont want the code to show in the taskbar and I want it to run in the background people have told me to use pythonw.exe but it seems that you can't retrieve the data or interact with code from pyhtonw.exe.
Let me explain what the code does everytime you press a key the key gets appended to a list and when you press the f1 button it prints the list so I have to be able to see the list when it gets printed can pythonw.exe do that?

In Python, how do I make my code run in a custom sized window?

I need to know the CODE to change the size of the window that comes up when I run my python file. I am making a chess game using text, and the size of the board is too tall to fit in the little window that comes up when I run my code. I don't want to have to do it manually, I need to make it a specific size so that I know what spacing to use so that when it prints the chess board to the window, it will be fully visible without any of the previous board visible. Is there a way to do that? Right now the default size is like 25 lines in length, 50-80 lines would be optimal. Thanks to whoever knows how to do this, or if it is even possible!
I don't know if this is important, but I am using Python 2.7 and I am running Windows 7.
I believe I am using it in IDLE... I don't have anything else installed to execute .py files besides whatever came with the installation of Python 2.7.6.

non-print output in tty in python?

I dont know how to properly term what i want.
I want to make a program that doesnt just print and scroll but still be a linux-CLI program.
Lets say i write a program that does 3 things:
1, its tails a logfile
2, it shows the time
3, it runs a continous ping.
And say i want the time to be displayed in lower right corner, i want the logtail to scroll in the upper 5 lines of the terminal, and i want the ping to scroll (separately) in the main body of the terminal.
So what i am asking, basicly, is: can i make a cli-program behave like a GUI-program where the clock for instance just updates without printing it again, and there are 2 seperate data streams from subprocesses that scroll independantly
Did that make sense? Im pretty new to programming.
You can control the Unix terminal more fully with the curses library. The library essentially lets you build a simple terminal GUI.
If you need more, take a look at Urwid as well. Urwid offers more complex GUI widgets for the discerning terminal GUI developer. :-)

Categories

Resources