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

Method UpdateSize

gui/chrome_tabs.py:794–800  ·  view source on GitHub ↗

Update tab sizes based on new tab container size

(self)

Source from the content-addressed store, hash-verified

792 event.Skip()
793
794 def UpdateSize(self):
795 """Update tab sizes based on new tab container size"""
796 width, _ = self.GetSize()
797 if width != self.width:
798 self.width = width
799 self.tab_container_width = self.width - self.reserved
800 self.AdjustTabsSize()
801
802 def OnLeftDown(self, event):
803 """ Select tab on mouse down and start dragging logic """

Callers 2

OnSizeMethod · 0.95
OnSizeMethod · 0.80

Calls 2

AdjustTabsSizeMethod · 0.95
GetSizeMethod · 0.45

Tested by

no test coverage detected