def destroy(self): GuiState.destroy(self) print('destroying GuiObjSearch') self.keybindings.remove(pygame.MOUSEBUTTONUP) self.keybindings.remove(pygame.K_RETURN) self.keybindings.remove(pygame.K_UP) self.keybindings.remove(pygame.K_DOWN) self.controls[:] = [] self.listbox = None self.textbox = None self.level = None
def destroy(self, *args): GuiState.destroy(self) self.controls[:] = []
def destroy(self): print('GuiEditObj destroy called') GuiState.destroy(self) self.keybindings.remove(pygame.K_TAB) self.controls[:] = []
def destroy(self, *args): GuiState.destroy(self) self.keybindings.remove(pygame.K_ESCAPE)