Changeset 3 for trunk/opendict.py

Show
Ignore:
Timestamp:
09/23/06 18:47:13 (2 years ago)
Author:
mjoc
Message:

Ability to activate/deactivate installed dictionaries so that only a
part of them would be shown in the menu at the time.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/opendict.py

    r1 r3  
    162162 
    163163 
     164      for d in self.dictionaries.values(): 
     165          if not self.config.activedict.init: 
     166              if not self.config.activedict.enabled(d.getName()): 
     167                  d.setActive(active=False) 
     168          else: 
     169              # Fill up with names if not initialized yet 
     170              self.config.activedict.add(d.getName()) 
     171 
     172 
    164173      windowPos = (int(self.config.get('windowPosX')), 
    165174                                int(self.config.get('windowPosY')))