Add windows version
This commit is contained in:
parent
50f3324c10
commit
e03d27e0c5
@ -22,6 +22,7 @@
|
|||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
""" Import externals """
|
""" Import externals """
|
||||||
|
import platform
|
||||||
import wx
|
import wx
|
||||||
import threading
|
import threading
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -286,6 +287,9 @@ 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"])
|
||||||
|
if platform.system() == 'Windows':
|
||||||
|
subprocess.run(['start', self.watchModeFile + ".png"])
|
||||||
|
else:
|
||||||
subprocess.run(['xdg-open', self.watchModeFile + ".png"])
|
subprocess.run(['xdg-open', self.watchModeFile + ".png"])
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 126 KiB |
@ -1 +1 @@
|
|||||||
#define TAGVERSION "b'v1.2-25-g2a698fa'"
|
#define TAGVERSION "b'v1.2-26-g50f3324-dirty'"
|
||||||
|
Loading…
Reference in New Issue
Block a user