Changeset 51 for conseil.py

Show
Ignore:
Timestamp:
08/11/06 19:38:13 (2 years ago)
Author:
ploum
Message:

#62 : Button to open the bug in a web browser
First step in the advanced search UI

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • conseil.py

    r50 r51  
    6767                treeV.append_column(column) 
    6868                treeV.show() 
     69                #construction of the advanced search widget 
     70                adv_glade = gtk.glade.XML("advanced_search.glade") 
     71                #with scrollbars 
     72                #adv_main = adv_glade.get_widget("advanced_widget") 
     73                #or without 
     74                adv_main = adv_glade.get_widget("vbox_main") 
     75                adv_parent = self.wTree.get_widget("vbox_adv") 
     76                to_remove = self.wTree.get_widget("omega13") 
     77 
     78                statusbox = adv_glade.get_widget("status_vbox") 
     79                for e in self.bts.availableStatus(): 
     80                        checkbox = gtk.CheckButton(label=e) 
     81                        checkbox.show() 
     82                        statusbox.pack_start(checkbox,expand=0,padding=1) 
     83                importancebox = adv_glade.get_widget("importance_vbox") 
     84                for e in self.bts.availableImportance(): 
     85                        checkbox = gtk.CheckButton(label=e) 
     86                        checkbox.show() 
     87                        importancebox.pack_start(checkbox,expand=0,padding=1) 
     88 
     89                adv_parent.remove(to_remove) 
     90                adv_parent.add(adv_main) 
    6991 
    7092        def __isint(self,x):