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

Method GetMinSize

gui/chrome_tabs.py:451–459  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

449 return self.CopyRegion(self.close_region)
450
451 def GetMinSize(self):
452 ebmp = wx.Bitmap(1, 1)
453 mdc = wx.MemoryDC()
454 mdc.SelectObject(ebmp)
455 mdc.SetFont(self.font)
456 textSizeX, textSizeY = mdc.GetTextExtent(self.text)
457 totalSize = self.left_width + self.right_width + textSizeX + self.close_btn_width / 2 + 16 + self.padding * 2
458 mdc.SelectObject(wx.NullBitmap)
459 return totalSize, self.tab_height
460
461 def SetTabImage(self, img):
462 self.tab_img = img

Callers 1

AdjustTabsSizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected