MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / selectShip

Method selectShip

gui/builtinShipBrowser/shipItem.py:143–153  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

141 return 2
142
143 def selectShip(self, event):
144 if self.tcFitName.IsShown():
145 self.tcFitName.Show(False)
146 self.newBtn.SetBitmap(self.newBmp)
147 self.Refresh()
148 else:
149 shipName, shipTrait, fittings = self.shipFittingInfo
150 if fittings > 0:
151 wx.PostEvent(self.shipBrowser, Stage3Selected(shipID=self.shipID, back=True))
152 else:
153 self.newBtnCB()
154
155 def MouseLeftUp(self, event):
156 self.selectShip(event)

Callers 2

OnKeyUpMethod · 0.95
MouseLeftUpMethod · 0.95

Calls 4

newBtnCBMethod · 0.95
SetBitmapMethod · 0.80
ShowMethod · 0.45
RefreshMethod · 0.45

Tested by

no test coverage detected