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

Method GetBorders

gui/chrome_tabs.py:155–166  ·  view source on GitHub ↗

Gets border widths to better determine page size in ShowActive()

(self)

Source from the content-addressed store, hash-verified

153 self.ShowActive()
154
155 def GetBorders(self):
156 """Gets border widths to better determine page size in ShowActive()"""
157
158 bx = wx.SystemSettings.GetMetric(wx.SYS_BORDER_X)
159 by = wx.SystemSettings.GetMetric(wx.SYS_BORDER_Y)
160
161 if bx < 0:
162 bx = 1
163 if by < 0:
164 by = 1
165
166 return bx, by
167
168 def ReplaceActivePage(self, page):
169 self.SetPage(self.GetSelection(), page)

Callers 1

ShowActiveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected