Logo Search packages:      
Sourcecode: guidance-power-manager version File versions

def guidance-power-manager::PowerManager::setIcon (   self  ) 

Change the systray/tooltip icon.

Definition at line 593 of file guidance-power-manager.py.

00593                      :
        """ Change the systray/tooltip icon."""
        oldIcon = self.icon
        self.icon = self._getIcon()
        if self.icon != oldIcon:
            icon = BarIcon(self.icon)
            self.systray.setIcon(QIcon(icon))
            self.BattPixmap.setPixmap(icon)
            self.parent().setWindowIcon(QIcon(icon))
            menu = self.systray.contextMenu() #hmm, doesn't work?
            menu.setIcon(QIcon(icon))

    def notify(self, msg, icon=None):


Generated by  Doxygen 1.6.0   Back to index