commit 5e62cdd2baf42b804ef7847d7a7f649845149bc0 Author: Walter Date: Sat Apr 6 16:30:54 2024 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4e6646f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +nv-venv +.idea +output \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..4f4c977 --- /dev/null +++ b/app.py @@ -0,0 +1,22 @@ +import PySimpleGUI as sg +import sys + +sg.theme("DarkAmber") + +class GUI: + + def __init__(self): + layout = [ + [sg.Text("Commandline arguments:")], + [sg.Multiline("\n".join(sys.argv), size=(100, 20))] + ] + self.window = sg.Window(title="Windows Protocol Viewer", + layout=layout) + + def run(self): + while True: + self.event, self.values = self.window.read() + + if self.event == sg.WINDOW_CLOSED: + break + self.window.close() \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..eb8365a --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +PySimpleGUI==4.* \ No newline at end of file diff --git a/start.py b/start.py new file mode 100644 index 0000000..badca7f --- /dev/null +++ b/start.py @@ -0,0 +1,5 @@ +import app + + +if __name__ == "__main__": + app.GUI().run() \ No newline at end of file