|
|
|
@ -188,7 +188,6 @@ class TrayIcon (QtGui.QSystemTrayIcon):
|
|
|
|
|
# elif reply == QtGui.QMessageBox.Yes:
|
|
|
|
|
# self.update_thread.close()
|
|
|
|
|
# self.update_thread.wait()
|
|
|
|
|
|
|
|
|
|
self._parent._closeEvent()
|
|
|
|
|
|
|
|
|
|
def activ(self, reason):
|
|
|
|
@ -239,7 +238,6 @@ class TrayIcon (QtGui.QSystemTrayIcon):
|
|
|
|
|
else:
|
|
|
|
|
show_msg(_('Update is already running'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class LeftButtonMenu(QtGui.QMenu):
|
|
|
|
|
def __init__(self, parent, MainWgt):
|
|
|
|
|
QtGui.QMenu.__init__(self)
|
|
|
|
@ -278,7 +276,7 @@ class LeftButtonMenu(QtGui.QMenu):
|
|
|
|
|
# self.addAction(self.sys_update)
|
|
|
|
|
#
|
|
|
|
|
# self.addSeparator()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add exit action
|
|
|
|
|
exit_icons = ['application-exit', 'system-log-out']
|
|
|
|
|
exit_icon = QtGui.QIcon()
|
|
|
|
@ -297,7 +295,7 @@ class LeftButtonMenu(QtGui.QMenu):
|
|
|
|
|
|
|
|
|
|
self.addAction(self.exit_action)
|
|
|
|
|
# self.setWindowOpacity(0.6)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# bg_color_alpha = 'rgba(0,0,0,150)'
|
|
|
|
|
# self.setStyleSheet( self.styleSheet() + \
|
|
|
|
|
# 'QMenu {'\
|
|
|
|
@ -313,7 +311,7 @@ class LeftButtonMenu(QtGui.QMenu):
|
|
|
|
|
class RightButtonMenu(QtGui.QMenu):
|
|
|
|
|
def __init__(self, parent, MainWgt):
|
|
|
|
|
QtGui.QMenu.__init__(self)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add about program
|
|
|
|
|
About_icon = (QtGui.QIcon('/usr/share/pixmaps/calculate3.png'))
|
|
|
|
|
themeName = QtGui.QIcon.themeName()
|
|
|
|
@ -352,7 +350,7 @@ class RightButtonMenu(QtGui.QMenu):
|
|
|
|
|
self.addAction(self.bug_action)
|
|
|
|
|
|
|
|
|
|
self.addSeparator()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add tools
|
|
|
|
|
tools_icons = ['preferences-other', 'preferences-system']
|
|
|
|
|
tools_icon = QtGui.QIcon()
|
|
|
|
|