dialogs/AboutDialog.py
branchwxPython4
changeset 3586 cbc6a6ccd52e
parent 3570 eb915a9fdcb0
child 3750 f62625418bff
equal deleted inserted replaced
3585:efdefbad49eb 3586:cbc6a6ccd52e
    51         if parent and parent.GetIcon():
    51         if parent and parent.GetIcon():
    52             self.SetIcon(parent.GetIcon())
    52             self.SetIcon(parent.GetIcon())
    53 
    53 
    54         image = None
    54         image = None
    55         if self.info.Icon:
    55         if self.info.Icon:
    56             bitmap = wx.BitmapFromIcon(self.info.Icon)
    56             bitmap = wx.Bitmap()
       
    57             bitmap.CopyFromIcon(self.info.Icon)
    57             image = wx.StaticBitmap(self, bitmap=bitmap)
    58             image = wx.StaticBitmap(self, bitmap=bitmap)
    58 
    59 
    59         name = wx.StaticText(self, label="%s %s" % (info.Name, info.Version))
    60         name = wx.StaticText(self, label="%s %s" % (info.Name, info.Version))
    60         description = wx.StaticText(self, label=info.Description)
    61         description = wx.StaticText(self, label=info.Description)
    61         description.Wrap(400)
    62         description.Wrap(400)