Changeset 1826 for trunk/python/selector.py
- Timestamp:
- 08/03/10 11:41:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/selector.py
r1819 r1826 1 1 from asap._asap import selector as _selector 2 from asap import unique, _to_list2 from asap.utils import unique, _to_list 3 3 4 4 class selector(_selector): … … 165 165 Set a sequence of row numbers (0-based). Power users Only! 166 166 NOTICE row numbers can be changed easily by sorting, 167 prior selection, etc. 167 prior selection, etc. 168 168 Parameters: 169 169 rows: a list of integers. Default [] is to unset the selection. 170 170 """ 171 vec = _to_list(rows, int) 171 vec = _to_list(rows, int) 172 172 if isinstance(vec,list): 173 173 self._setrows(vec) … … 177 177 def set_types(self, types=[]): 178 178 """ 179 Set a sequence of source types. 179 Set a sequence of source types. 180 180 Parameters: 181 181 types: a list of integers. Default [] is to unset the selection. 182 182 """ 183 vec = _to_list(types, int) 183 vec = _to_list(types, int) 184 184 if isinstance(vec,list): 185 185 self._settypes(vec)
Note: See TracChangeset
for help on using the changeset viewer.