Skip to content

Commit e13cd7d

Browse files
author
Xin Bo Qi
committed
fix the toolbar color with wx=4.1.1
1 parent 817e008 commit e13cd7d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sciwx/widgets/toolbar.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ def make_logo(obj):
2323
a = memoryview(rgb[::3]).tolist()
2424
a = bytes([255-i for i in a])
2525
bmp = wx.Bitmap.FromBufferAndAlpha(16, 16, rgb, a)
26-
img = bmp.ConvertToImage()
27-
img.Resize((20,20), (2,2))
28-
return img.ConvertToBitmap()
26+
# img = bmp.ConvertToImage()
27+
# img.Resize((20,20), (2,2))
28+
# return img.ConvertToBitmap()
29+
return bmp
2930

3031
class ToolBar(wx.Panel):
3132
def __init__(self, parent, vertical=False):

0 commit comments

Comments
 (0)