~photostory/photostory/trunk

« back to all changes in this revision

Viewing changes to app.py

  • Committer: David Turner
  • Date: 2010-08-03 23:33:09 UTC
  • Revision ID: finalfantasykid13@gmail.com-20100803233309-8scme8kgx5vpzlq0
Fixed the 'Take today's picture' button

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
            if date in self.db:
160
160
                self.pic = gtk.Image()
161
161
                self.pic.set_from_file(self.db[date])
 
162
                takeBut.set_label("Picture taken for this day.")
 
163
                takeBut.set_sensitive(False)
 
164
            else: 
162
165
                if date == todayDate:
163
 
                    takeBut.set_label("Picture taken for this day.")
 
166
                    takeBut.set_label("Take today's picture")
 
167
                    takeBut.set_sensitive(True)
 
168
                else:
 
169
                    takeBut.set_label("Take today's picture")
164
170
                    takeBut.set_sensitive(False)
165
 
            else: 
166
171
                self.pic = gtk.Label()
167
172
                self.pic.set_justify(gtk.JUSTIFY_CENTER)
168
173
                self.pic.set_markup("<span size='54000'>No Picture\nToday</span>");