(self, event)
| 52 | pass |
| 53 | |
| 54 | def OnWindowPaint(self, event): |
| 55 | # todo: evaluate wx.DragImage, might make this class obsolete, however might also lose our customizations |
| 56 | # (like the sexy fade-in animation) |
| 57 | rect = self.GetRect() |
| 58 | canvas = wx.Bitmap(round(rect.width), round(rect.height)) |
| 59 | # todo: convert to context manager after updating to wxPython >v4.0.1 (4.0.1 has a bug, see #1421) |
| 60 | # See #1418 for discussion |
| 61 | mdc = wx.BufferedPaintDC(self) |
| 62 | mdc.SelectObject(canvas) |
| 63 | mdc.DrawBitmap(self.bitmap, 0, 0) |
| 64 | mdc.SetPen(wx.Pen("#000000", width=1)) |
| 65 | mdc.SetBrush(wx.TRANSPARENT_BRUSH) |
| 66 | mdc.DrawRectangle(0, 0, round(rect.width), round(rect.height)) |
nothing calls this directly
no outgoing calls
no test coverage detected