3a74efc97fdd1cf503b326e811c5eb641b3d4a94,ilastik/applets/labeling/labelingGui.py,LabelingGui,changeInteractionMode,#LabelingGui#Any#,216
Before Change
// If the user can"t label this image, disable the button and say why its disabled
labelsAllowed = self.imageIndex >= 0 and self._labelingGuiSlots.labelsAllowed[self.imageIndex].value
self._labelControlUi.AddLabelButton.setEnabled(labelsAllowed)
if labelsAllowed:
self._labelControlUi.AddLabelButton.setText("Add Label")
else:
self._labelControlUi.AddLabelButton.setText("(Labeling Not Allowed)")
After Change
labelsAllowed = False
if self.imageIndex != -1:
labelsAllowedSlot = self._labelingGuiSlots.labelsAllowed[self.imageIndex]
if labelsAllowedSlot.ready():
labelsAllowed = labelsAllowedSlot.value
self._labelControlUi.AddLabelButton.setEnabled(labelsAllowed)
if labelsAllowed:
self._labelControlUi.AddLabelButton.setText("Add Label")
else:
self._labelControlUi.AddLabelButton.setText("(Labeling Not Allowed)")
if self.imageIndex != -1 and labelsAllowed:
self._labelControlUi.arrowToolButton.show()
self._labelControlUi.paintToolButton.show()
self._labelControlUi.eraserToolButton.show()
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances Project Name: ilastik/ilastik
Commit Name: 3a74efc97fdd1cf503b326e811c5eb641b3d4a94
Time: 2012-08-16
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/labeling/labelingGui.py
Class Name: LabelingGui
Method Name: changeInteractionMode
Project Name: matplotlib/matplotlib
Commit Name: a99a4c773fdcdf1f3de37ac2ca84851af5774cf9
Time: 2019-05-24
Author: efiring@hawaii.edu
File Name: lib/matplotlib/backends/backend_qt5.py
Class Name: NavigationToolbar2QT
Method Name: set_history_buttons
Project Name: ilastik/ilastik
Commit Name: 2b703025a571e5da5a0a067974142d1ae57c45b6
Time: 2014-03-12
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/labeling/labelingGui.py
Class Name: LabelingGui
Method Name: _changeInteractionMode
Project Name: biolab/orange3
Commit Name: 584a6eef875b59fe4db8eff49ad2d9faa629c652
Time: 2016-07-01
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/visualize/owsieve.py
Class Name: OWSieveDiagram
Method Name: resolve_shown_attributes
Project Name: wkentaro/labelme
Commit Name: eb2e55a11ea7f0bf9b599b2454879170c910dee8
Time: 2019-02-25
Author: weaper@gmail.com
File Name: labelme/app.py
Class Name: MainWindow
Method Name: setClean