(self)
| 35 | #################################################### |
| 36 | class MainWindow(QMainWindow): |
| 37 | def __init__(self): |
| 38 | QMainWindow.__init__(self) |
| 39 | self.ui = SpectrumSecurityWindow() |
| 40 | self.ui.setupUi(self) |
| 41 | |
| 42 | tray_icon = SystemTrayIcon(QIcon("ui\designer\imgs\general\icon.png"), self) |
| 43 | tray_icon.show() |
| 44 | |
| 45 | ##==> WINDOW OPTIONS |
| 46 | #################################################### |
| 47 | self.setWindowFlag(QtCore.Qt.FramelessWindowHint) |
| 48 | self.setAttribute(QtCore.Qt.WA_TranslucentBackground) |
| 49 | |
| 50 | ##==> WINDOW BUTTONS |
| 51 | #################################################### |
| 52 | self.ui.top_menu_minimize_btn.clicked.connect(lambda: self.showMinimized()) |
| 53 | self.ui.top_menu_close_btn.clicked.connect(lambda: self.close()) |
| 54 | |
| 55 | |
| 56 | ##==> EVENTS |
| 57 | #################################################### |
| 58 | self.ui.top_menu_header.mouseMoveEvent = self.moveWindow |
| 59 | |
| 60 | self.ui.bottom_menu_scroll_area.installEventFilter(self) |
| 61 | |
| 62 | self.ui.bottom_menu_home.installEventFilter(self) |
| 63 | self.ui.bottom_menu_scanning.installEventFilter(self) |
| 64 | self.ui.bottom_menu_virus_storage.installEventFilter(self) |
| 65 | self.ui.bottom_menu_faq.installEventFilter(self) |
| 66 | self.ui.bottom_menu_settings.installEventFilter(self) |
| 67 | |
| 68 | self.ui.home_secret_way.installEventFilter(self) |
| 69 | self.ui.scanning_secret_way.installEventFilter(self) |
| 70 | self.ui.faq_secret_way.installEventFilter(self) |
| 71 | self.ui.settings_secret_way.installEventFilter(self) |
| 72 | |
| 73 | |
| 74 | ##==> START WIDGET SETTINGS ON PAGES |
| 75 | #################################################### |
| 76 | self.home_page_widgets_settings() |
| 77 | self.scanning_page_widgets_settings() |
| 78 | self.virus_storage_page_widgets_settings() |
| 79 | self.faq_page_widgets_settings() |
| 80 | self.settings_page_widgets_settings() |
| 81 | |
| 82 | |
| 83 | self.show() |
| 84 | |
| 85 | |
| 86 |
nothing calls this directly
no test coverage detected