(self, event)
| 215 | mdc.DrawBitmap(self.bmpArrow, round((rect.width - self.bmpArrow.GetWidth()) / 2), -2) |
| 216 | |
| 217 | def OnTimer(self, event): |
| 218 | if event.GetId() == self.animTimerID: |
| 219 | start = 0 |
| 220 | if self.layout == wx.VERTICAL: |
| 221 | end = self.maxWidth - self.minWidth |
| 222 | else: |
| 223 | end = self.maxHeight - self.minHeight |
| 224 | |
| 225 | step = animEffects.OUT_CIRC(self.animStep, start, end, self.animDuration) |
| 226 | self.animStep += self.animPeriod * self.direction |
| 227 | |
| 228 | self.AdjustSize((self.minWidth if self.layout == wx.VERTICAL else self.minHeight) + step) |
| 229 | |
| 230 | if self.animStep > self.animDuration or self.animStep < 0: |
| 231 | self.animTimer.Stop() |
| 232 | self.animStep = self.animDuration if self.direction == 1 else 0 |
| 233 | self.Parent.GetBrowserContainer().RefreshList(True) |
| 234 | |
| 235 | if event.GetId() == self.checkTimerID: |
| 236 | if self.checkMaximize: |
| 237 | self.direction = 1 |
| 238 | else: |
| 239 | self.direction = -1 |
| 240 | |
| 241 | if not self.animTimer.IsRunning(): |
| 242 | self.animTimer.Start(self.animPeriod) |
| 243 | |
| 244 | def AdjustSize(self, delta): |
| 245 | self.SetMinSize(wx.Size(delta, -1) if self.layout == wx.VERTICAL else wx.Size(-1, delta)) |
nothing calls this directly
no test coverage detected