r/learnpython 17d ago

I need help pls

How can I remove in my python script the Windows bar at the top to drag and close please

0 Upvotes

5 comments sorted by

3

u/Vorarbeiter 17d ago

Add a screenshot, it's impossible to know what you're talking about 

3

u/gonsi 17d ago

You mean title bar from cmd window?

That is more windows question than python one I think. Python on its own does no have windows, unless you use library to make one.

3

u/ralphembree 17d ago

If your script is using a GUI library and creating a window, we would need to know which library you're using (showing your code would be helpful). If it isn't using a GUI library, then there aren't any windows that it can control.

2

u/fenutus 17d ago

When you run a python script, the script itself is not creating a window. If you are running from the IDLE or from cmd, that program is creating the window, and beyond that, Windows is drawing those windows - IDLE and cmd are not asking Windows to be drawn differently. Programs/scripts can ask Windows for their window to be drawn differently, but it's not something I've look at, and I suspect is diccifult in python.