how do you change the canvas or window size of an app using kivy

后端 未结 3 1254
[愿得一人]
[愿得一人] 2021-01-18 04:38

How do you change the size of a window using Kivy. I\'ve been searching around and am able to change pretty much everything except the size of the window that things go into

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 05:02

    To manage window config you can use the import from kivy.config import Config on top of source file.

    from kivy.config import Config
    Config.set('graphics', 'resizable', '0')
    Config.set('graphics', 'width', '640')
    Config.set('graphics', 'height', '480')
    

提交回复
热议问题