def on_search(self): controller = CharacterController() if self.ui.txt_name.text() != "": name = self.ui.txt_name.text() player = controller.get_character(name) if player != "Not found.": self.set_character_info(player) self.set_kills_info(player) else: error = ControlErrorDialog(None, "No Player") error.show()
def callback(self,widget,data=None): name = self.name_entry.get_text() characterController = CharacterController() player = characterController.get_character(name) self.make_fields_visible(player)