fix icon size
This commit is contained in:
+14
-1
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user