~flimm/epidermis/icon-theme-bugfix

« back to all changes in this revision

Viewing changes to epidermis/pigments/grub.py

  • Committer: David D Lowe
  • Date: 2011-01-04 22:50:19 UTC
  • Revision ID: daviddlowe.flimm@gmail.com-20110104225019-uo31kb54cbxjt5vt
Tidy up code with better comments.
Deleted unused functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        progressCallback(1.0)
77
77
    
78
78
    def is_activated(self):
79
 
        """Returns whether this pigment is applied. To check if the effects
80
 
        have been activated regardless of Epidermis' pigments, use is_meat_activated"""
81
79
        return self.is_meat_activated()
82
80
 
83
81
    def is_attachment_correct(self, attachmentIndex=None):
91
89
        else: return False
92
90
    
93
91
    def is_meat_activated(self):
94
 
        """Returns whether the meat of this pigment or similar to it is activated"""
95
92
        # TODO: finish is_meat_activated
96
93
        (md1, md2) = (hashlib.md5(), hashlib.md5())
97
94
        try:
127
124
            return pb
128
125
    
129
126
    def does_activation_require_root(self):
130
 
        """Returns whether the activation requires root rights.
131
 
        If it does, the pigment object will need a pexpect bash shell as root
132
 
        to be passed to some of its methods"""
133
127
        return True
134
128
    
135
129
    def get_display_data(self, index=0):
136
 
        """Returns the object of index to be added to a gtk.ListStore, this
137
 
        could be a string, a gtk.gdk.Pixbuf or a custom widget, it should
138
 
        be rendered using type.create_cell_renderer"""
139
130
        return
140
 
 
141
 
if __name__ == "__main__":
142
 
    print >> sys.stderr, "Don't run"