Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL2 - window border still visible after removing window decorations #2616

Closed
dessant opened this issue Oct 24, 2014 · 6 comments
Closed

SDL2 - window border still visible after removing window decorations #2616

dessant opened this issue Oct 24, 2014 · 6 comments
Labels
Component: core-providers kivy/core Component: documentation Documentation or examples SDL2 SDL2 provider

Comments

@dessant
Copy link
Contributor

dessant commented Oct 24, 2014

untitled

import os
os.environ['KIVY_WINDOW'] = 'sdl2'

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

from kivy.app import App
from kivy.uix.button import Button


class MyApp(App):

    def build(self):
        return Button(text='Test')

if __name__ == '__main__':
    MyApp().run()

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@dessant dessant added Component: core-providers kivy/core SDL2 SDL2 provider labels Oct 24, 2014
@dessant dessant added Platform: Windows Status: Needs-analysis Issue needs to be analyzed if it's real labels Nov 5, 2014
@martinsik
Copy link

I think this doesn't apply to OS X 10.10.3 any more. Tested on Kivy 1.9.0.
screen shot 2015-05-20 at 10 58 45

@welnaseth
Copy link

Any progress on this issue for Windows Platforms? I'm getting the same behavior as @dessant on Windows 7 64-bit using Kivy 1.9.1

@dessant
Copy link
Contributor Author

dessant commented Feb 26, 2016

@welnaseth, it seems to be an upstream issue, you could check if it has been reported for sdl2, or open an issue there.

Please link any info you get from the sdl2 devs.

@dessant
Copy link
Contributor Author

dessant commented Feb 26, 2016

Yay, if you want to also hide the resizing handle, you have to disable resizing. This should be documented.
The example below should give you no borders at all:

from kivy.config import Config
Config.set('graphics', 'width', 300)
Config.set('graphics', 'height', 300)
Config.set('graphics', 'resizable', 'False')
Config.set('graphics', 'borderless', 'True')

from kivy.app import App
from kivy.uix.button import Button


class MyApp(App):

    def build(self):
        return Button(text='Test')

if __name__ == '__main__':
    MyApp().run()

solution by kived

@dessant dessant added Component: documentation Documentation or examples and removed Status: Needs-analysis Issue needs to be analyzed if it's real labels Feb 26, 2016
@kived
Copy link
Contributor

kived commented Feb 26, 2016

Oh, nice. Put me in the fine print. :P

@dessant
Copy link
Contributor Author

dessant commented Feb 26, 2016

😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: core-providers kivy/core Component: documentation Documentation or examples SDL2 SDL2 provider
Projects
None yet
Development

No branches or pull requests

4 participants