Example #1
0
    def __init__(self, type, parent=None):
        QWidget.__init__(self, parent)

        # Get our info.
        self.name = type
        text, self.icon = addons.manager._types[type][-2:]
        if text:
            self.text = text
        else:
            self.text = ' '.join(x.capitalize() for x in
                                 self.name.replace('_').split(' '))

        if not self.icon:
            self.icon = ''

        # Set some stuff.
        self.setWindowTitle(self.text)
        self.setWindowIcon(style.icon(self.icon))
Example #2
0
    def __init__(self, type, parent=None):
        QWidget.__init__(self, parent)

        # Get our info.
        self.name = type
        text, self.icon = addons.manager._types[type][-2:]
        if text:
            self.text = text
        else:
            self.text = ' '.join(x.capitalize() for x in
                                 self.name.replace('_').split(' '))

        if not self.icon:
            self.icon = ''

        # Set some stuff.
        self.setWindowTitle(self.text)
        self.setWindowIcon(style.icon(self.icon))
Example #3
0
 def reload_icons(self):
     """ Reload all of our icons. Which is... one icon. """
     self.setWindowIcon(style.icon('addon-manager'))
Example #4
0
 def reload_icons(self):
     """ Reload all of our icons. Which is... one icon. """
     self.setWindowIcon(style.icon('addon-manager'))
Example #5
0
    def reload_icons(self):
        self.setWindowIcon(style.icon('application'))

        a = self.actions
        for key in a.keys():
            a[key].setIcon(style.icon(key.lower()))