From 2a243c718b77fbd227bcfc7664ed75255e28ff45 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 27 Feb 2024 22:01:37 +0000 Subject: [PATCH] fix icon size --- anon_gui.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/anon_gui.py b/anon_gui.py index f804784..ca96b2e 100644 --- a/anon_gui.py +++ b/anon_gui.py @@ -941,7 +941,20 @@ base site url: {self.base_site_url} info.SetName(__APP_NAME__) info.SetVersion(__VERSION__) 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)