add some functional
This commit is contained in:
@ -49,7 +49,7 @@ def create_configuration_window(db, session: Session):
|
||||
|
||||
dpg.add_button(
|
||||
label="Генерация отчета",
|
||||
callback=lambda: logger.info("Reporting selected"),
|
||||
callback=lambda: show_report_window(db, session),
|
||||
width=-1,
|
||||
height=50
|
||||
)
|
||||
@ -110,4 +110,15 @@ def show_attack_window(db, session):
|
||||
# Создать новую контентную область
|
||||
# with dpg.child_window(parent="config_window", tag="content_area", width=-1, height=-1):
|
||||
from src.ui.attack_window import create_attack_window
|
||||
create_attack_window(db, session, parent="content_area")
|
||||
create_attack_window(db, session, parent="content_area")
|
||||
|
||||
def show_report_window(db, session):
|
||||
"""Показать окно эксплуатации"""
|
||||
# Очистить контентную область
|
||||
if dpg.does_item_exist("content_area"):
|
||||
dpg.delete_item("content_area", children_only=True)
|
||||
|
||||
# Создать новую контентную область
|
||||
# with dpg.child_window(parent="config_window", tag="content_area", width=-1, height=-1):
|
||||
from src.ui.report_window import create_report_window
|
||||
create_report_window(db, session, parent="content_area")
|
Reference in New Issue
Block a user