(self, event)
| 449 | self.Centre(wx.BOTH) |
| 450 | |
| 451 | def ssoLogin(self, event): |
| 452 | self.popCharList() |
| 453 | sChar = Character.getInstance() |
| 454 | # Update existing pyfa character, if it doesn't exist - create new |
| 455 | char = sChar.getCharacter(event.character.characterName) |
| 456 | newChar = False |
| 457 | if char is None: |
| 458 | char = sChar.new(event.character.characterName) |
| 459 | newChar = True |
| 460 | char.setSsoCharacter(event.character, config.getClientSecret()) |
| 461 | sChar.apiFetch(char.ID, APIView.fetchCallback) |
| 462 | wx.PostEvent(self.mainFrame, GE.CharListUpdated()) |
| 463 | event.Skip() |
| 464 | |
| 465 | def kbEvent(self, event): |
| 466 | if event.GetKeyCode() == wx.WXK_ESCAPE and event.GetModifiers() == wx.MOD_NONE: |
nothing calls this directly
no test coverage detected