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