Ask Your Question
4

How can I remove/hide the minimize button on a Kivy window?

asked 2022-03-08 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-28 19:00:00 +0000

lalupa gravatar image

You can remove/hide the minimize button on a Kivy window by setting the window's borderless property to True and its resizable property to False.

Here's an example:

from kivy.config import Config
Config.set('graphics', 'borderless', 1)
Config.set('graphics', 'resizable', 0)

The above code will set the window to be borderless and non-resizable, which will effectively remove the minimize button.

Note that this will affect all Kivy windows in the application. If you want to apply this setting to only a specific window, you can do so by setting the borderless and resizable properties on that specific window object.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-08 11:00:00 +0000

Seen: 9 times

Last updated: Oct 28 '22