def __icon_activated(self, reason): if reason == QtWidgets.QSystemTrayIcon.DoubleClick: self.show() #translate UI