def update_confined(self): World.remove(self.mouse_confined_button) if Settings.mouse_confined: self.mouse_confined_button.texts[0].set_text('Mouse confined') else: self.mouse_confined_button.texts[0].set_text('Mouse unconfined') World.add(self.mouse_confined_button)
def click_rename(self): name = input('New name: ') p = Level.default_path + '\\' + name + '.txt' os.rename(self.path, p) self.path = p World.remove(self.name_label) self.display_name() print('Saved as: ' + p)
def remove_buttons(self): for i in self.buttons: World.remove(i)
def remove_characters(self): for i in self.characters: World.remove(i) for i in self.buttons: World.remove(i)
def end(self): World.remove(self.name_label) self.remove_characters()
def f(): Settings.main_character_name = name Settings.write_settings() World.remove(self.name_label) self.display_name()
def end(self): World.remove(self.mouse_confined_button)
def world_remove(self): World.remove(self)
def end(self): World.remove(self.name_label)