Kivy window set_title changes back to main file name

后端 未结 2 887
滥情空心
滥情空心 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):
        ...
        ...
    
    

提交回复
热议问题