Kivy window set_title changes back to main file name

后端 未结 2 929
滥情空心
滥情空心 2021-01-21 20:43

When I set the window title, the title is set back to it\'s corresponding file name.

class myniceApp(App):
    global Window
    def build(self):
        Window.         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-21 21:01

    Window title is set with App.title, not with Window directly:

    class MyApp(App):
        def build(self):
            self.title = 'Hello world'
    

提交回复
热议问题