Skip to content

Commit 74bc519

Browse files
Added a Refresh() call for Windows.
1 parent 83e775a commit 74bc519

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AutoSizeBitmap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ def __init__(self, parent, image, *args, **kwargs):
2020
2121
:param parent: parent Window for this window
2222
:param image: a wx.Image that you want to display
23-
"""
24-
23+
"""
2524
wx.Window.__init__(self, parent, *args, **kwargs)
2625

2726
self.orig_image = image
@@ -34,7 +33,8 @@ def OnSize(self, evt=None):
3433
img = self.orig_image.Copy()
3534
img.Rescale(*self.Size)
3635
self.bitmap = wx.BitmapFromImage(img)
37-
36+
self.Refresh()
37+
3838
def OnPaint(self, evt=None):
3939
dc = wx.PaintDC(self)
4040
try:

0 commit comments

Comments
 (0)