提交 6d870d2d 编写于 作者: K Kentaro Wada

Raise error in findItemByShape

上级 c0d99dc4
......@@ -179,6 +179,7 @@ class LabelListWidget(QtWidgets.QListView):
item = self.model().item(row, 0)
if item.shape() == shape:
return item
raise ValueError("cannot find shape: {}".format(shape))
def clear(self):
self.model().clear()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册