def closeEvent(self, event):
if self.trayIcon.isVisible() and not self.user_closed:
QMessageBox.information(
self, "Bitmask",
"Bitmask will minimize to the system tray. "
"You can choose 'Quit' from the menu with a "
"right click on the icon, and restore the window "
"with a double click.")
self.hide()
if not self.user_closed:
event.ignore()
评论列表
文章目录