示例#1
0
文件: gui.py 项目: HenryHu/xmradio
 def event(self, event):
     if event.type() == QtCore.QEvent.Close:
         if QtWidgets.QSystemTrayIcon.isSystemTrayAvailable():
             self.hide()
             return True
     return QQuickView.event(self, event)
示例#2
0
 def event(self, e):
     if e.type() == QEvent.Close:
         return self.close()
     return QQuickView.event(self, e)