6

How I can remove or hide the default minimize or maximize button of a window created with kivy.

Kumar Roshan Mehta
  • 3,078
  • 2
  • 27
  • 50
  • Not exactly what you want, but you can remove entire titlebar: http://stackoverflow.com/questions/20613738/how-can-i-hide-the-main-window-titlebar-and-place-a-transparent-background-in-ki – Nykakin Sep 03 '14 at 10:15

2 Answers2

0

I'm not aware of a simple way to do this - it's not exposed in the kivy window api, and may not even be exposed in pygame (which is likely the backend you're using on desktop).

Maybe you can look up the right way to do it on each system you target, e.g. I think you can hint it to X11, but I don't know if this is really plausible or nice.

We're developing a new sdl2 backend, which is more flexible about some of these kinds of things, but I don't know if it would make this possible.

inclement
  • 29,124
  • 4
  • 48
  • 60
-1

First option:

(Seen on https://github.com/kivy/kivy/issues/2616)

from kivy.config import Config
Config.set('graphics', 'borderless', 'True')

.....

Second option:

from kivy.core.window import Window
Window.bordeless = 'True'