Kivy window set_title changes back to main file name

后端 未结 2 888
滥情空心
滥情空心 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 20:54

    you can use it like below.. this one worked for me.. i tried the first solution explained above, but it did not work.. so i change a bit and put the title outside the build function, its working successfully..

    class controllerApp(App):
        title = 'Vehicle Detection System'
    
        def build(self, video_source=VIDEO_SOURCE):
        ...
        ...
    
    
    0 讨论(0)
  • 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'
    
    0 讨论(0)
提交回复
热议问题