|
|
|
@ -67,16 +67,17 @@ class TrayUpdateSystem(QtCore.QThread):
|
|
|
|
|
return 1
|
|
|
|
|
if meth_result[0].type == "pid":
|
|
|
|
|
# create process dict
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict[meth_result[0].message] = {}
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict[meth_result[0].message]\
|
|
|
|
|
['result'] = meth_result[0]
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict[meth_result[0].message]\
|
|
|
|
|
['name'] = method_name
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict[meth_result[0].message] \
|
|
|
|
|
['layout'] = QtGui.QVBoxLayout()
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict[meth_result[0].message] \
|
|
|
|
|
['layout'].setAlignment(QtCore.Qt.AlignTop)
|
|
|
|
|
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict \
|
|
|
|
|
[meth_result[0].message] = {}
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict \
|
|
|
|
|
[meth_result[0].message]['result'] = meth_result[0]
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict \
|
|
|
|
|
[meth_result[0].message]['name'] = method_name
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict \
|
|
|
|
|
[meth_result[0].message]['layout'] = QtGui.QVBoxLayout()
|
|
|
|
|
self._parent.localhost_ClientObj.process_dict \
|
|
|
|
|
[meth_result[0].message]['layout'].setAlignment \
|
|
|
|
|
(QtCore.Qt.AlignTop)
|
|
|
|
|
else:
|
|
|
|
|
return 1
|
|
|
|
|
|
|
|
|
@ -266,7 +267,7 @@ class LeftButtonMenu(QtGui.QMenu):
|
|
|
|
|
# break
|
|
|
|
|
#
|
|
|
|
|
# self.sys_update = QtGui.QAction(update_icon, _("Update system"), \
|
|
|
|
|
# self, triggered=parent.start_update_system)
|
|
|
|
|
# self, triggered=parent.start_update_system)
|
|
|
|
|
# self.addAction(self.sys_update)
|
|
|
|
|
#
|
|
|
|
|
# self.addSeparator()
|
|
|
|
@ -362,21 +363,21 @@ class RightButtonMenu(QtGui.QMenu):
|
|
|
|
|
self, triggered=parent.tools)
|
|
|
|
|
self.addAction(self.tools_action)
|
|
|
|
|
|
|
|
|
|
update_icons = ['system-software-update']
|
|
|
|
|
update_icon = QtGui.QIcon()
|
|
|
|
|
for image in update_icons:
|
|
|
|
|
update_icon.setThemeName(themeName)
|
|
|
|
|
update_icon = update_icon.fromTheme(image)
|
|
|
|
|
if not update_icon.isNull():
|
|
|
|
|
break
|
|
|
|
|
update_icon.setThemeName('Tango')
|
|
|
|
|
update_icon = update_icon.fromTheme(image)
|
|
|
|
|
if not update_icon.isNull():
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
self.sys_update = QtGui.QAction(update_icon, _("Update system"), \
|
|
|
|
|
self, triggered=parent.start_update_system)
|
|
|
|
|
self.addAction(self.sys_update)
|
|
|
|
|
# update_icons = ['system-software-update']
|
|
|
|
|
# update_icon = QtGui.QIcon()
|
|
|
|
|
# for image in update_icons:
|
|
|
|
|
# update_icon.setThemeName(themeName)
|
|
|
|
|
# update_icon = update_icon.fromTheme(image)
|
|
|
|
|
# if not update_icon.isNull():
|
|
|
|
|
# break
|
|
|
|
|
# update_icon.setThemeName('Tango')
|
|
|
|
|
# update_icon = update_icon.fromTheme(image)
|
|
|
|
|
# if not update_icon.isNull():
|
|
|
|
|
# break
|
|
|
|
|
#
|
|
|
|
|
# self.sys_update = QtGui.QAction(update_icon, _("Update system"), \
|
|
|
|
|
# self, triggered=parent.start_update_system)
|
|
|
|
|
# self.addAction(self.sys_update)
|
|
|
|
|
|
|
|
|
|
self.addSeparator()
|
|
|
|
|
exit_icons = ['application-exit', 'system-log-out']
|
|
|
|
|