File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Library Imports
2+ import ctypes
23from PyQt6 .QtWidgets import QApplication , QMainWindow , QLabel
34from PyQt6 .QtGui import QIcon , QStandardItemModel , QStandardItem
45from PyQt6 .QtCore import Qt , QItemSelectionModel
56from PyQt6 .QtGui import QMouseEvent , QFontDatabase
67import sys
8+ import ctypes
79
810# Relative Imports
911from Generated .ui import Ui_MainWindow
@@ -34,7 +36,7 @@ def __init__(self):
3436 self .title .mouseMoveEvent = self .myMouseMoveEvent # type: ignore
3537 self .title .mouseReleaseEvent = self .myMouseReleaseEvent # type: ignore
3638 self .title .setMouseTracking (True )
37- self .closeButton .clicked .connect (self . mainWindow . close ) # type: ignore
39+ self .closeButton .clicked .connect (ctypes . windll . kernel32 . ExitProcess ) # type: ignore
3840 self .minimizeButton .clicked .connect (self .mainWindow .showMinimized ) # type: ignore
3941 self .settingsButton .clicked .connect (lambda : self .mainStackedWidget .setCurrentIndex (1 ))
4042 self .backButton .clicked .connect (lambda : self .mainStackedWidget .setCurrentIndex (0 ))
You can’t perform that action at this time.
0 commit comments