fix icon size

This commit is contained in:
Ross
2024-02-27 22:01:37 +00:00
parent db8ad86477
commit 2a243c718b
+14 -1
View File
@@ -941,7 +941,20 @@ base site url: {self.base_site_url}
info.SetName(__APP_NAME__) info.SetName(__APP_NAME__)
info.SetVersion(__VERSION__) info.SetVersion(__VERSION__)
info.SetDescription(description) info.SetDescription(description)
info.SetIcon(wx.Icon("icon/icon1.png", desiredWidth=100)) icon_path = "icon/icon1.png"
desired_width = 200
desired_height = 200
# Load the icon image
image = wx.Image(icon_path)
# Resize the image
resized_image = image.Rescale(desired_width, desired_height)
# Create a new icon with the resized image
resized_icon = wx.Icon(resized_image.ConvertToBitmap())
info.SetIcon(resized_icon)
info.SetLicence(licence) info.SetLicence(licence)