Changeset 948

Show
Ignore:
Timestamp:
07/05/07 17:41:04 (6 years ago)
Author:
kop-labs
Message:

Option List fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/k0p/umitInterfaceEditor/OptionManager.py

    r947 r948  
    1010from higwidgets.higlabels import HIGSectionLabel, HIGEntryLabel 
    1111from higwidgets.higentries import HIGTextEntry 
     12from higwidgets.hignotebooks import HIGNotebook 
     13 
    1214 
    1315from umitCore.I18N import _ 
     
    161163        @type list: Dictionarie with elements 
    162164        """ 
     165        self.clear() 
    163166        self.option_label.set_new_text(list['name']) 
    164167        self.name_entry.set_text(list['name']) 
     
    179182        fill fields 
    180183        """ 
     184        self.clear() 
    181185        self.options_label.set_label(name) 
    182186        self.name_entry.set_text(name) 
     
    188192class OptionList(HIGVBox): 
    189193    """ 
    190     Returns a treeview with a list of actual options 
     194    A treeview with a list of actual options 
    191195    """ 
    192196     
     
    194198        HIGVBox.__init__(self) 
    195199        self.__model =  gtk.TreeStore(gobject.TYPE_STRING) 
    196         self.__treeview = self.edit_mode_tv = gtk.TreeView(self.__model) 
     200        self.__treeview = gtk.TreeView(self.__model) 
     201        self.__treeview.set_headers_visible(False) 
    197202        renderer = gtk.CellRendererText()  
    198203        column = gtk.TreeViewColumn("Name", renderer, text=0) 
     
    203208        hbox.pack_start(self.__treeview, True, True) 
    204209        self.__scrolledwindow.add_with_viewport(hbox) 
    205         self.pack_start(self.__scrolledwindow, True, True) 
     210        self.notebook = HIGNotebook() 
     211        self.notebook.append_page(self.__scrolledwindow, HIGEntryLabel(_('Name'))) 
     212        self.pack_start(self.notebook, True, True) 
    206213        self.optiondisplay = optiondisplay 
    207214