diff --git a/designs/stats.ui b/designs/stats.ui index 7addcb6..62d1410 100644 --- a/designs/stats.ui +++ b/designs/stats.ui @@ -49,6 +49,24 @@ + + + + 660 + 520 + 201 + 71 + + + + + 24 + + + + Назад + + diff --git a/stats.py b/stats.py index 7197b56..92addd7 100644 --- a/stats.py +++ b/stats.py @@ -20,5 +20,10 @@ def __init__(self): self.lastPoem.setText(f"Последний изученный стих: {poem[1]}\nАвтор: {poem[2]}") self.cur.execute("""SELECT AVG(wrong_ratio) FROM poem""") avg = round(self.cur.fetchone()[0], 2) - print(avg) self.avgRatio.setText(f"Средний коэффициент правильности за все стихи: {avg}") + self.backButton.clicked.connect(self.exit_to_main_menu) + + def exit_to_main_menu(self): + self.con.close() + self.hide() + main.Main().show()