~benlau/filetagger/trunk

« back to all changes in this revision

Viewing changes to FileTagger/views/gtk/SearchWindow.py

  • Committer: Ben Lau
  • Date: 2009-02-20 16:45:23 UTC
  • Revision ID: xbenlau@gmail.com-20090220164523-khhduodx8alw2n63
Debian Packaging Script

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                                        gobject.TYPE_STRING, # Summary
41
41
                                        gobject.TYPE_INT # File ID
42
42
                                        )
 
43
                                        
 
44
                self.label_tagged_with = "Tagged with"
 
45
                self.label_not_tagged = "Not Tagged"
43
46
                
44
47
                gtk.Window.__init__(self)
45
48
                
51
54
                hbox = gtk.HBox()
52
55
                self.vbox.pack_start(hbox,False,False)
53
56
                
54
 
                self.tag_toggle_button = gtk.Button(label="Tag : ")
 
57
                self.tag_toggle_button = gtk.Button(label=self.label_tagged_with)
55
58
                self.tag_toggle_button.set_relief(gtk.RELIEF_NONE)
56
59
                hbox.pack_start(self.tag_toggle_button,False,False)
57
60
 
263
266
        def _on_tag_toggle_button_clicked(self,button):
264
267
                self.search_not_tagged = not self.search_not_tagged
265
268
                if self.search_not_tagged:
266
 
                        button.set_label("No Tags :")
 
269
                        button.set_label(self.label_not_tagged)
267
270
                        self.tags_entry.set_sensitive(False)
268
271
                else:
269
 
                        button.set_label("Tags :")
 
272
                        button.set_label(self.label_tagged_with)
270
273
                        self.tags_entry.set_sensitive(True)
271
274
 
272
275
        def _on_tagsview_button_toggled(self,toggle):