def on_btn_settings(self): self.work = False win_settings = Settings(background=self.background) win_settings.run()