Skip to content

Commit

Permalink
Merge pull request #3908 from t20100/allow-custom-items
Browse files Browse the repository at this point in the history
silx.gui.plot.PlotWidget: Added support for 'other' kind of plot items
  • Loading branch information
vallsv authored Jul 13, 2023
2 parents c10d519 + 784b32a commit f05e0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/silx/gui/plot/PlotWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ def _itemKind(cls, item):
for kind, itemClasses in cls._KIND_TO_CLASSES.items():
if isinstance(item, itemClasses):
return kind
raise ValueError('Unsupported item type %s' % type(item))
return 'other'

def _notifyContentChanged(self, item):
self.notify('contentChanged', action='add',
Expand Down

0 comments on commit f05e0e5

Please sign in to comment.