MyTetra Share
Делитесь знаниями!
information() / окно информации
Время создания: 16.04.2017 16:31
Текстовые метки: code
Раздел: Python - PyQt5 - Структура классов - PyQt5 - QtWidgets - QMessageBox
Запись: xintrea/mytetra_db_mcold/master/base/1492349510kvm2n5pi6n/text.html на raw.githubusercontent.com

def closeEvent(self, event): # класс обязательно должен наследовать от QDialog
if self.trayIcon.isVisible():
QMessageBox.information(
self, "Systray",
"The program will keep running in the system tray. To "
"terminate the program, choose <b>Quit</b> in the "
"context menu of the system tray entry."
)
self.hide()
event.ignore()

self.trayIcon = QSystemTrayIcon(self)

 
MyTetra Share v.0.59
Яндекс индекс цитирования