python - How do I create a borderless window in Kivy? -
i building python desktop application using kivy , find out how create borderless window similar how eve online it: eve online launch screen.
this now, , want achieve in next step: what want accomplish
i've spent hours googling solution, closest i've ever come these links: how can hide main window titlebar , place transparent background in kivy framework?, , this: borderless windows in wxpython
here current code (python 2.7, kivy 1.9):
from kivy.app import app kivy.uix.button import button kivy.config import config config.set('graphics', 'width', '480') config.set('graphics', 'height', '320') config.set('graphics', 'borderless', '1') class myapp(app): def build(self): button = button(text="exit", size_hint=(none, none)) button.bind(on_press=exit) return button if __name__ == '__main__': myapp().run() i see if can accomplished in kivy. able suggest approaches problem? thanks!
to create borderless window set windows.borderless property true
from kivy.core.window import window window.size = (500, 300) window.borderless = true be sure provide alternative way exit program since won't able click on window close buttons provided os.
Comments
Post a Comment