mg-pso-gui 0.0.194__py3-none-any.whl → 0.0.196__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {mg_pso_gui-0.0.194.dist-info → mg_pso_gui-0.0.196.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.0.194.dist-info → mg_pso_gui-0.0.196.dist-info}/RECORD +7 -7
- mgpsogui/gui/HomePage.py +11 -4
- mgpsogui/util/PSORunner.py +0 -3
- {mg_pso_gui-0.0.194.dist-info → mg_pso_gui-0.0.196.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.0.194.dist-info → mg_pso_gui-0.0.196.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.0.194.dist-info → mg_pso_gui-0.0.196.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
mgpsogui/__init__.py,sha256=q7AfBjeJABnFtbsZnsObpUwaXKPDVYtz46G6MKXLF74,42
|
2
2
|
mgpsogui/mgpsogui.py,sha256=NIZmyNcbwC8EgSwf1ubdMUSJscrIEgoD4jLYziqHQ-k,148
|
3
3
|
mgpsogui/start.yaml,sha256=ZjCVLb-MLqAxrGRm9kA7_SDpa-45EuKIELNQ2QqCAiU,4713
|
4
|
-
mgpsogui/gui/HomePage.py,sha256=
|
4
|
+
mgpsogui/gui/HomePage.py,sha256=ApzNyeOENIGMvJiff-E_EBdTQZtKny_DfzHllm5S8z4,25197
|
5
5
|
mgpsogui/gui/OptionManager.py,sha256=bFN2jWJbx1Din3waOFLmbWGt0BXD_KthGJ8Mgue_FEE,11712
|
6
6
|
mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=KyIoHlMKD9nfQqHeGJwRDA4RCoe4UykjB2l6xMTKK_M,10486
|
@@ -29,12 +29,12 @@ mgpsogui/gui/images/stop.png,sha256=JPuxXQerCGpLikcp7cAj3iLCOjULMYYZ2sZe0lArh68,
|
|
29
29
|
mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ,2958
|
30
30
|
mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
|
31
31
|
mgpsogui/util/GraphGenerator.py,sha256=_YCZRzB8f4qzj5LRhOLTFS9SZMUceRPBjdBTqm0JkbI,7850
|
32
|
-
mgpsogui/util/PSORunner.py,sha256=
|
32
|
+
mgpsogui/util/PSORunner.py,sha256=jYsOBGR-Mu1cN0JTE6R-Wa3UWUxIufCbM9jZxpFPwwI,6706
|
33
33
|
mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
34
|
mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
|
35
35
|
mgpsogui/util/CTkToolTip/ctk_tooltip.py,sha256=SZMovpQIGvdpDRbqCKl9SHs92DrFCO2MOYL2ifolvOE,6329
|
36
|
-
mg_pso_gui-0.0.
|
37
|
-
mg_pso_gui-0.0.
|
38
|
-
mg_pso_gui-0.0.
|
39
|
-
mg_pso_gui-0.0.
|
40
|
-
mg_pso_gui-0.0.
|
36
|
+
mg_pso_gui-0.0.196.dist-info/METADATA,sha256=-FnXKQc9KEvo-YkBLQB_duvn0-tHYeSZ2-yL76gHCsk,9459
|
37
|
+
mg_pso_gui-0.0.196.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
38
|
+
mg_pso_gui-0.0.196.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
39
|
+
mg_pso_gui-0.0.196.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
40
|
+
mg_pso_gui-0.0.196.dist-info/RECORD,,
|
mgpsogui/gui/HomePage.py
CHANGED
@@ -26,6 +26,8 @@ import ast
|
|
26
26
|
import platform
|
27
27
|
import time
|
28
28
|
|
29
|
+
from queue import Empty
|
30
|
+
|
29
31
|
from ..util import PSORunner
|
30
32
|
from ..util import GraphGenerator
|
31
33
|
|
@@ -407,10 +409,15 @@ class App(customtkinter.CTk):
|
|
407
409
|
if not os.path.exists(folder):
|
408
410
|
os.makedirs(folder)
|
409
411
|
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
412
|
+
try:
|
413
|
+
stdout_line = stdout_queue.get_nowait()
|
414
|
+
stderr_line = stderr_queue.get_nowait()
|
415
|
+
except Empty:
|
416
|
+
pass # No output yet
|
417
|
+
else:
|
418
|
+
# Got line from the output: do something
|
419
|
+
print(f"Received stdout: {stdout_line}")
|
420
|
+
print(f"Received stderr: {stderr_line}")
|
414
421
|
|
415
422
|
if (os.path.exists(os.path.join(folder, 'output.txt'))):
|
416
423
|
with open(os.path.join(folder, 'output.txt'), 'r') as f:
|
mgpsogui/util/PSORunner.py
CHANGED
@@ -33,9 +33,6 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder):
|
|
33
33
|
|
34
34
|
if (os.path.exists(os.path.join(folder, 'error.txt'))):
|
35
35
|
os.remove(os.path.join(folder, 'error.txt'))
|
36
|
-
|
37
|
-
#sys.stdout = open(os.path.join(folder, 'output.txt'), 'w', buffering=1)
|
38
|
-
#sys.stderr = open(os.path.join(folder, 'error.txt'), 'w', buffering=1)
|
39
36
|
|
40
37
|
old_stdout = sys.stdout
|
41
38
|
old_stderr = sys.stderr
|
File without changes
|
File without changes
|
File without changes
|