dabo Commit
Revision 6260
Date: 2010-12-17 15:31:27 -0800 (Fri, 17 Dec 2010)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6260
Changed:
U trunk/dabo/ui/uiwx/dListControl.py
Log:
Change all range references to xrange.
Diff:
Modified: trunk/dabo/ui/uiwx/dListControl.py
===================================================================
--- trunk/dabo/ui/uiwx/dListControl.py 2010-12-17 22:35:03 UTC (rev 6259)
+++ trunk/dabo/ui/uiwx/dListControl.py 2010-12-17 23:31:27 UTC (rev 6260)
@@ -204,7 +204,7 @@
warning if the control is not set to MultipleSelect.
"""
if self.MultipleSelect:
- for row in range(self.RowCount):
+ for row in xrange(self.RowCount):
self.select(row)
else:
dabo.log.error("'selectAll()' may only be called on
List Controls that designated as MultipleSelect")
@@ -212,7 +212,7 @@
def unselectAll(self):
"""De-selects all rows."""
- for row in range(self.RowCount):
+ for row in xrange(self.RowCount):
self.unselect(row)
# Override the default selectNone to something appropriate for this
control.
selectNone = unselectAll
@@ -246,7 +246,7 @@
def autoSizeColumns(self, colList=None):
"""Auto-sizes all the columns."""
if colList is None:
- colList = range(self.ColumnCount)
+ colList = xrange(self.ColumnCount)
for col in colList:
self.autoSizeColumn(col)
@@ -503,7 +503,7 @@
def _getItemDataDict(self):
"""Return a dict with the items as keys, and the ItemData as
values."""
ret = {}
- for row in range(self.RowCount):
+ for row in xrange(self.RowCount):
ret[row] = self.GetItemData(row)
return ret
@@ -515,7 +515,7 @@
data = []
# Don't allow the default -1 for sort column.
col = max(0, self._sortColumn)
- for row in range(self.RowCount):
+ for row in xrange(self.RowCount):
try:
itm = self.GetItem(row, col)
data.append((itm.GetText(), row))
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]