Changeset 1048


Ignore:
Timestamp:
Aug 30, 2013 4:01:05 PM (8 years ago)
Author:
toby
Message:

fix About box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1047 r1048  
    11871187            wx.BITMAP_TYPE_ICO)
    11881188        if "wxMSW" in wx.PlatformInfo:
    1189             self.SetIcon(self.Image.Scale(16, 16))
     1189            img = self.Image.Scale(16, 16).ConvertToBitmap()
    11901190        elif "wxGTK" in wx.PlatformInfo:
    1191             self.SetIcon(self.Image.Scale(22, 22))
     1191            img = self.Image.Scale(22, 22).ConvertToBitmap()
    11921192        else:
    1193             self.SetIcon(wx.IconFromBitmap(self.Image.ConvertToBitmap()))
     1193            img = self.Image.ConvertToBitmap()
     1194        self.SetIcon(wx.IconFromBitmap(img))
    11941195        self.Bind(wx.EVT_CLOSE, self.ExitMain)
    11951196        # various defaults
Note: See TracChangeset for help on using the changeset viewer.