Changeset 3038

Show
Ignore:
Timestamp:
06/26/08 12:17:52 (5 years ago)
Author:
luis
Message:

Rename

Location:
branch
Files:
2 added
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • branch/PreferencesWindow/umitPreferences/PreferencesWindow.py

    r2989 r3038  
    2424from higwidgets.higframe import HIGFrame 
    2525 
    26 from umitCore.Logging import log 
     26from umitCore.UmitLogging import log 
    2727from umitCore.I18N import _ 
     28 
     29from  umitPreferences.TabsWidget import TabsIcon 
     30 
    2831 
    2932""" 
     
    4548        } 
    4649         
     50         
     51         
     52        # TabsWidget - Create 
     53         
     54         
     55        self.__t = TabsIcon() 
     56         
     57         
     58         
    4759        # Tabs - treeview 
    4860 
     
    7991        """ Organize widgets  """ 
    8092        self.__box.pack_start(self.__treeview, True, True) 
     93        self.__box.pack_start(self.__t, True, True) 
    8194        self.add(self.__box) 
    8295    def close(self): 
  • branch/PreferencesWindow/umitPreferences/TabsWidget.py

    r3034 r3038  
    3131""" 
    3232import gtk  
     33 
    3334from higwidgets.higboxes import HIGHBox 
     35import os.path 
     36from umitCore.Paths import Path 
     37# Develpment step  
     38Path.set_umit_conf("umit") 
    3439 
    3540 
    36 class TabsIcon(gtk.Widget): 
     41class TabStruct: 
    3742    def __init__(self): 
    3843        """ Constructor """ 
    39         gtk.Widget.__init__(self) 
     44        self.__list = [] 
     45    def add_item(self, name): 
     46        pass 
     47    def del_item(self, name): 
     48        pass 
     49     
     50 
     51 
     52class TabsIcon(HIGHBox): 
     53    def __init__(self): 
     54        """ Constructor """ 
     55        HIGHBox.__init__(self) 
    4056        self._box = HIGHBox() 
    4157        self._icons_list = [] 
     58        self._tabstruct = TabStruct() 
     59         
     60        model = gtk.ListStore(str, gtk.gdk.Pixbuf) 
     61        pixmap_d = Path.pixmaps_dir 
     62        pixmap_file = os.path.join(pixmap_d, "Preferences" ,'logo.png') 
     63        pixbuf = gtk.gdk.pixbuf_new_from_file (pixmap_file) 
     64        model.append(['Cancel', pixbuf]) 
     65        self.__icon = gtk.IconView() 
     66        self.__icon.set_model(model) 
     67        self.__icon.set_text_column(0) 
     68        self.__icon.set_pixbuf_column(1) 
     69 
     70        self.pack_start(self.__icon, True, True) 
     71 
     72         
    4273    def __create_icon_list(self): 
    4374         
    4475        iconView = gtk.IconView () 
    4576        self._icons_list.append(iconView) 
    46          
    47  
    48 # Testing widget 
    49  
    5077 
    5178         
    5279 
    53          
    54  
    55          
    56