0f761449704287895fb6a47662f61f5f731ecc89,Orange/widgets/utils/domaineditor.py,VarTypeDelegate,setEditorData,#VarTypeDelegate#Any#Any#,139

Before Change


            index.row()][Column.not_valid]
        ind = self.items.index(index.data())
        combo.addItems(self.items[:1] + self.items[1 + no_numeric:])
        combo.setCurrentIndex(ind - (no_numeric and ind > 1))


class PlaceDelegate(ComboDelegate):
    def setEditorData(self, combo, index):

After Change


        combo.clear()
        no_numeric = not self.view.model().variables[
            index.row()][Column.not_valid]
        if no_numeric:
            // Do not allow selection of numeric and datetime
            items = [i for i in self.items if i not in ("numeric", "datetime")]
        else:
            items = self.items

        ind = items.index(index.data())
        combo.addItems(items)
        combo.setCurrentIndex(ind)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biolab/orange3
Commit Name: 0f761449704287895fb6a47662f61f5f731ecc89
Time: 2017-03-02
Author: jerneju@gmail.com
File Name: Orange/widgets/utils/domaineditor.py
Class Name: VarTypeDelegate
Method Name: setEditorData


Project Name: ilastik/ilastik
Commit Name: 169b3bf064d5855d970a08ad1ac82c610764eea4
Time: 2012-05-27
Author: bergs@janelia.hhmi.org
File Name: ilastik-shell/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: updateStorageOptionComboBox


Project Name: ilastik/ilastik
Commit Name: 961b6d3ad986d3484e43e5fff04f90d3dd923317
Time: 2019-06-28
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: __init__