MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

gui/chrome_tabs.py:652–665  ·  view source on GitHub ↗

Renders the add tab button

(self)

Source from the content-addressed store, hash-verified

650
651class _AddRenderer:
652 def __init__(self):
653 """Renders the add tab button"""
654 self.add_img = BitmapLoader.getImage("ctabadd", "gui")
655 self.width = self.add_img.GetWidth()
656 self.height = self.add_img.GetHeight()
657
658 self.region = None
659 self.tbmp = wx.Bitmap(self.add_img)
660 self.add_bitmap = None
661
662 self.position = (0, 0)
663 self.highlighted = False
664
665 self.InitRenderer()
666
667 def GetPosition(self):
668 return self.position

Callers

nothing calls this directly

Calls 4

InitRendererMethod · 0.95
getImageMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected