Trying to get the icon working. Failing for now

This commit is contained in:
Julien Lengrand-Lambert
2012-08-21 07:40:03 +02:00
parent b1e782c1d5
commit 6084b0eac3
2 changed files with 10 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -27,6 +27,16 @@ class IvolutionWindow(wx.Frame):
"""
wx.Frame.__init__(self, parent, title=title, size=(500, 700))
# Sets icon
# ib = wx.IconBundle()
# ib.AddIconFromFile("ivolution/data/media/vitruve_64.png", wx.BITMAP_TYPE_ANY)
# self.SetIcons(ib)
image = wx.Image("ivolution/data/media/vitruve_64.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
icon = wx.EmptyIcon()
icon.CopyFromBitmap(image)
self.SetIcon(icon)
# Sets up logging capability
self.my_logger = None
self.console_logger = None