gui
This commit is contained in:
@@ -50,10 +50,14 @@ class NassiShneidermanDiagram:
|
|||||||
for line in filtered_lines:
|
for line in filtered_lines:
|
||||||
if line.startswith("while("):
|
if line.startswith("while("):
|
||||||
|
|
||||||
|
def nassi(NSD):
|
||||||
|
|
||||||
|
NSD.load_from_file("res/input/input.java")
|
||||||
|
|
||||||
|
NSD.convert_to_image("Nina", 500)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
"""for debugging"""
|
"""for debugging"""
|
||||||
|
|
||||||
from Iinstruction import *
|
from Iinstruction import *
|
||||||
|
|
||||||
NSD = NassiShneidermanDiagram(True)
|
NSD = NassiShneidermanDiagram(True)
|
||||||
|
|||||||
7
gui.py
7
gui.py
@@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
from NassiShneidermann import NassiShneidermanDiagram, nassi
|
||||||
|
|
||||||
import PySimpleGUI as sg
|
import PySimpleGUI as sg
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
@@ -97,6 +99,11 @@ while True:
|
|||||||
)
|
)
|
||||||
|
|
||||||
window["-TOUT-"].update(filename)
|
window["-TOUT-"].update(filename)
|
||||||
|
|
||||||
|
from Iinstruction import *
|
||||||
|
NSD = NassiShneidermanDiagram(True)
|
||||||
|
nassi(NSD)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user