Changeset 1047 for trunk/GSASII.py


Ignore:
Timestamp:
Aug 30, 2013 3:46:39 PM (9 years ago)
Author:
toby
Message:

change update for new windows; improve About box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1042 r1047  
    11831183    def __init__(self, parent):
    11841184        self._init_ctrls(parent)
     1185        self.Image = wx.Image(
     1186            os.path.join(GSASIIpath.path2GSAS2,'gsas2.ico'),
     1187            wx.BITMAP_TYPE_ICO)
     1188        if "wxMSW" in wx.PlatformInfo:
     1189            self.SetIcon(self.Image.Scale(16, 16))
     1190        elif "wxGTK" in wx.PlatformInfo:
     1191            self.SetIcon(self.Image.Scale(22, 22))
     1192        else:
     1193            self.SetIcon(wx.IconFromBitmap(self.Image.ConvertToBitmap()))
    11851194        self.Bind(wx.EVT_CLOSE, self.ExitMain)
    11861195        # various defaults
Note: See TracChangeset for help on using the changeset viewer.