コード例 #1
0
 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()
コード例 #2
0
 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()
コード例 #3
0
 def callback(self,widget,data=None):
     name = self.name_entry.get_text()
     characterController = CharacterController()
     player = characterController.get_character(name)
     self.make_fields_visible(player)