From 0495f1dccec137f185434f1b95a655bbe6058beb Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Sun, 31 Jan 2021 20:39:07 -0800 Subject: [PATCH] Replace deprecated method with suggested one --- pyqtgraph/parametertree/parameterTypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/parametertree/parameterTypes.py b/pyqtgraph/parametertree/parameterTypes.py index d01dd272..5001ac2e 100644 --- a/pyqtgraph/parametertree/parameterTypes.py +++ b/pyqtgraph/parametertree/parameterTypes.py @@ -288,7 +288,7 @@ class WidgetParameterItem(ParameterItem): if tree is None: return if self.asSubItem: - tree.setFirstItemColumnSpanned(self.subItem, True) + self.subItem.setFirstColumnSpanned(True) tree.setItemWidget(self.subItem, 0, self.widget) tree.setItemWidget(self, 1, self.layoutWidget) self.displayLabel.hide()