Add windows version

This commit is contained in:
Andre Henriques 2023-11-30 21:22:04 +00:00
parent 50f3324c10
commit e03d27e0c5
3 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,7 @@
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
""" Import externals """ """ Import externals """
import platform
import wx import wx
import threading import threading
import subprocess import subprocess
@ -286,7 +287,10 @@ class ResultWindow(wx.Frame):
if self.watchMode: if self.watchMode:
print("Watching generating image") print("Watching generating image")
dotOutputWrite(btn.claim.attacks[0].scytherDot, self.watchModeFile + ".png",["-Tpng"]) dotOutputWrite(btn.claim.attacks[0].scytherDot, self.watchModeFile + ".png",["-Tpng"])
subprocess.run(['xdg-open', self.watchModeFile + ".png"]) if platform.system() == 'Windows':
subprocess.run(['start', self.watchModeFile + ".png"])
else:
subprocess.run(['xdg-open', self.watchModeFile + ".png"])
else: else:
try: try:
w = Attackwindow.AttackWindow(btn.claim) w = Attackwindow.AttackWindow(btn.claim)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

View File

@ -1 +1 @@
#define TAGVERSION "b'v1.2-25-g2a698fa'" #define TAGVERSION "b'v1.2-26-g50f3324-dirty'"