From b987c5aa2b85df79140d8b460b68eb8887971f35 Mon Sep 17 00:00:00 2001 From: damies13 Date: Mon, 26 Aug 2024 01:30:35 +1000 Subject: [PATCH] A few fixes after testing on a windows vm Issue #145 --- rfswarm_manager/rfswarm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rfswarm_manager/rfswarm.py b/rfswarm_manager/rfswarm.py index 4375bdd22..84502c6f9 100644 --- a/rfswarm_manager/rfswarm.py +++ b/rfswarm_manager/rfswarm.py @@ -2830,7 +2830,7 @@ def create_icons(self): # iconpath = "c:\\Users\\Dave\\AppData\\Local\\Programs\\Python\\Python311\\Lib\site-packages\\rfswarm_manager\\icons\\rfswarm-manager-128.ico" src_iconx128 = os.path.join(icon_dir, "rfswarm-manager-128.ico") - self.create_windows_shortcut(scutpath, manager_executable, src_iconx128, "Performance testing with robot test cases") + self.create_windows_shortcut(scutpath, manager_executable, src_iconx128, "Performance testing with robot test cases", True) def create_windows_shortcut(self, scutpath, targetpath, iconpath, desc, minimised=False): @@ -2847,11 +2847,11 @@ def create_windows_shortcut(self, scutpath, targetpath, iconpath, desc, minimise # psscript = '\n'.join(pslst) psscript = '; '.join(pslst) - self.debugmsg(6, "psscript:", psscript) + base.debugmsg(6, "psscript:", psscript) response= os.popen('powershell.exe -command ' + psscript).read() - self.debugmsg(6, "response:", response) + base.debugmsg(6, "response:", response) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # @@ -6114,6 +6114,7 @@ def ScheduledStart(self, _event=None): base.debugmsg(5, "run_starttime:", base.run_starttime) schedWindow = tk.Toplevel(self.root) + schedWindow.wm_iconphoto(False, self.icon) # schedWindow.config(bg="pink") schedWindow.columnconfigure(0, weight=1) schedWindow.rowconfigure(1, weight=1)