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

Method GetButtonsSize

gui/builtinMarketBrowser/pfSearchBox.py:127–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 return btnpos
126
127 def GetButtonsSize(self):
128 btnsize = []
129
130 if self.searchBitmap:
131 sw = self.searchBitmap.GetWidth()
132 sh = self.searchBitmap.GetHeight()
133 else:
134 sw = 0
135 sh = 0
136
137 if self.cancelBitmap:
138 cw = self.cancelBitmap.GetWidth()
139 ch = self.cancelBitmap.GetHeight()
140 else:
141 cw = 0
142 ch = 0
143
144 btnsize.append((sw, sh))
145 btnsize.append((cw, ch))
146 return btnsize
147
148 def OnLeftDown(self, event):
149 btnpos = self.GetButtonsPos()

Callers 2

OnLeftDownMethod · 0.95
OnLeftUpMethod · 0.95

Calls 3

GetWidthMethod · 0.45
GetHeightMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected