示例#1
0
	def __setitem__(self, i, item):
		if sys.version_info < (3, ) and isinstance(i, slice):
			start, stop, _ = i.indices(len(self))
			UserList.__setslice__(self, start, stop, item)
		else:
			UserList.__setitem__(self, i, item)
		self._changed()
示例#2
0
文件: Util.py 项目: billynip/map
 def __setslice__(self, i, j, other):
     UserList.__setslice__(self, i, j, other)
     self.unique = False
示例#3
0
文件: Util.py 项目: madnessw/thesnow
 def __setslice__(self, i, j, other):
     UserList.__setslice__(self, i, j, other)
     self.unique = False
示例#4
0
 def __setslice__(self, i, j, other):
     UserList.__setslice__(self, i, j, other)
     self.send(__setslice__=(i,j,other))
示例#5
0
文件: Models.py 项目: ProgVal/Manygui
 def __setslice__(self, i, j, other):
     UserList.__setslice__(self, i, j, other)
     self.notify()
示例#6
0
 def __setslice__(self, i, j, other):
     if sys.version_info < (3, ):
         UserList.__setslice__(self, i, j, other)
     else:
         UserList.__setitem__(self, slice(i, j), other)
     self._changed()
示例#7
0
	def __setslice__(self, i, j, other):
		if sys.version_info < (3, ):
			UserList.__setslice__(self, i, j, other)
		else:
			UserList.__setitem__(self, slice(i, j), other)
		self._changed()