def open_settings(self): self.win_settings = WinSettings(self.read_db, self) self.win_settings.show()
def cmd_settings(self, _=None): # Create window from class and save pointer self.win_settings = WinSettings(master=self.master) # Bind handler on destroying to clean up self class self.win_settings.bind("<Destroy>", self.handle_destroy_win_settings)