Changeset 3038
- Timestamp:
- 06/26/08 12:17:52 (5 years ago)
- Location:
- branch
- Files:
-
- 2 added
- 1 removed
- 2 modified
-
PreferencesWindow/share/pixmaps/umit/Preferences (added)
-
PreferencesWindow/share/pixmaps/umit/Preferences/logo.png (added)
-
PreferencesWindow/umitPreferences/PreferencesWindow.py (modified) (3 diffs)
-
PreferencesWindow/umitPreferences/TabsWidget.py (modified) (1 diff)
-
macport (deleted)
Legend:
- Unmodified
- Added
- Removed
-
branch/PreferencesWindow/umitPreferences/PreferencesWindow.py
r2989 r3038 24 24 from higwidgets.higframe import HIGFrame 25 25 26 from umitCore. Logging import log26 from umitCore.UmitLogging import log 27 27 from umitCore.I18N import _ 28 29 from umitPreferences.TabsWidget import TabsIcon 30 28 31 29 32 """ … … 45 48 } 46 49 50 51 52 # TabsWidget - Create 53 54 55 self.__t = TabsIcon() 56 57 58 47 59 # Tabs - treeview 48 60 … … 79 91 """ Organize widgets """ 80 92 self.__box.pack_start(self.__treeview, True, True) 93 self.__box.pack_start(self.__t, True, True) 81 94 self.add(self.__box) 82 95 def close(self): -
branch/PreferencesWindow/umitPreferences/TabsWidget.py
r3034 r3038 31 31 """ 32 32 import gtk 33 33 34 from higwidgets.higboxes import HIGHBox 35 import os.path 36 from umitCore.Paths import Path 37 # Develpment step 38 Path.set_umit_conf("umit") 34 39 35 40 36 class Tab sIcon(gtk.Widget):41 class TabStruct: 37 42 def __init__(self): 38 43 """ 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 52 class TabsIcon(HIGHBox): 53 def __init__(self): 54 """ Constructor """ 55 HIGHBox.__init__(self) 40 56 self._box = HIGHBox() 41 57 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 42 73 def __create_icon_list(self): 43 74 44 75 iconView = gtk.IconView () 45 76 self._icons_list.append(iconView) 46 47 48 # Testing widget49 50 77 51 78 52 79 53 54 55 56
