Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
deCryptor GUI v0.1-release (0.1)
Browse files Browse the repository at this point in the history
- Добавлена система версий для GUI
  • Loading branch information
romanin-rf committed Dec 17, 2021
1 parent adf0764 commit 9d9c9f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deCryptor-gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def named_tuple(name: str, data: dict) -> namedtuple:
return namedtuple(name, data.keys())(*data.values())

# Получение информации
__info__ = named_tuple("__info__", DeCryptor.get_version())
__info_core__ = named_tuple("info_core", DeCryptor.get_version())
__info_gui__ = named_tuple("info_gui", {"name": "deCryptor GUI", "version": "0.1-release", "versionint": 0.1})

# Окно программы
layout = [
Expand All @@ -39,11 +40,11 @@ def named_tuple(name: str, data: dict) -> namedtuple:
sg.FileBrowse(target="key_path")
],
[sg.Output(size=(88, 20), key="OutputConsole")],
[sg.Submit("Запуск", key="Start"), sg.Cancel("Очистить логи", key="ClearConsole"), sg.Text("Версия ядра: {0} ({1})".format(__info__.version, __info__.versionint), justification="right")]
[sg.Submit("Запуск", key="Start"), sg.Cancel("Очистить логи", key="ClearConsole"), sg.Text("Версия ядра: {0} ({1})\nВерсия GUI: {2} ({3})".format(__info_core__.version, __info_core__.versionint, __info_gui__.version, __info_gui__.versionint), justification="left")]
]

# Создание окна
window = sg.Window("deCryptor", layout)
window = sg.Window("{0}".format(__info_gui__.name), layout)

# Включения проверки нажатий
while True: # The Event Loop
Expand Down

0 comments on commit 9d9c9f9

Please sign in to comment.