Ignore:
Timestamp:
08/03/10 11:41:13 (14 years ago)
Author:
Malte Marquarding
Message:

Tidy up of imports (now imported from asap.). Also fixed some whitespace/tab issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/selector.py

    r1819 r1826  
    11from asap._asap import selector as _selector
    2 from asap import unique, _to_list
     2from asap.utils import unique, _to_list
    33
    44class selector(_selector):
     
    165165        Set a sequence of row numbers (0-based). Power users Only!
    166166        NOTICE row numbers can be changed easily by sorting,
    167         prior selection, etc. 
     167        prior selection, etc.
    168168        Parameters:
    169169            rows:    a list of integers. Default [] is to unset the selection.
    170170        """
    171         vec = _to_list(rows, int) 
     171        vec = _to_list(rows, int)
    172172        if isinstance(vec,list):
    173173            self._setrows(vec)
     
    177177    def set_types(self, types=[]):
    178178        """
    179         Set a sequence of source types. 
     179        Set a sequence of source types.
    180180        Parameters:
    181181            types:    a list of integers. Default [] is to unset the selection.
    182182        """
    183         vec = _to_list(types, int) 
     183        vec = _to_list(types, int)
    184184        if isinstance(vec,list):
    185185            self._settypes(vec)
Note: See TracChangeset for help on using the changeset viewer.