~muelnet/heybuddy/pulltimes

« back to all changes in this revision

Viewing changes to DentButton.py

  • Committer: jezra
  • Date: 2010-09-29 23:49:10 UTC
  • Revision ID: jezra@jezra.net-20100929234910-l70wo0040o0lcm4r
favoriting and unfavoriting sorta works

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
                gtk.Button.__init__(self)
15
15
                #add a "reply" button
16
16
                self.set_relief(gtk.RELIEF_HALF)
17
 
                button_label = gtk.Label()
 
17
                self.button_label = gtk.Label()
 
18
                self.set_text(string)
 
19
                self.add(self.button_label)
 
20
        
 
21
        def set_text(self,string):
18
22
                if not has_hildon:
19
23
                        markup="<span size='x-small' weight='bold'>%s</span>" % (string)
20
24
                else:
21
25
                        markup = string
22
 
                button_label.set_markup(markup)
23
 
                self.add(button_label)
24
 
        
 
26
                self.button_label.set_markup(markup)