549645246bf957b98545a7a0b39813e50d6e4c30,Orange/widgets/gui.py,ControlledList,__setitem__,#ControlledList#Any#Any#,1316
Before Change
return item
def __setitem__(self, index, item):
self.listBox.item(list.__getitem__(self, index)).setSelected(0)
item.setSelected(1)
list.__setitem__(self, index, item)
After Change
return item
def __setitem__(self, index, item):
if isinstance(index, int):
self.listBox.item(self[index]).setSelected(0)
item.setSelected(1)
else:
for i in self[index]:
self.listBox.item(i).setSelected(0)
for i in item:
self.listBox.item(i).setSelected(1)
super().__setitem__(index, item)
def __delitem__(self, index):
if isinstance(index, int):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: biolab/orange3
Commit Name: 549645246bf957b98545a7a0b39813e50d6e4c30
Time: 2013-02-11
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/gui.py
Class Name: ControlledList
Method Name: __setitem__
Project Name: cornellius-gp/gpytorch
Commit Name: ccc913a65e08bc5523eb2490d3177c472b55d094
Time: 2018-02-01
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/sum_batch_lazy_variable.py
Class Name: SumBatchLazyVariable
Method Name: __getitem__
Project Name: biotite-dev/biotite
Commit Name: b731f833810afd674f42d38ceb657a7a03608832
Time: 2017-12-12
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/annotation.py
Class Name: AnnotatedSequence
Method Name: __getitem__