From 3512bad557862a0212005bf2e701f1fc738523b4 Mon Sep 17 00:00:00 2001 From: BlazZupan Date: Sun, 5 Aug 2018 16:21:54 +0200 Subject: [PATCH] Show None when no target variables --- Orange/widgets/data/owdatainfo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Orange/widgets/data/owdatainfo.py b/Orange/widgets/data/owdatainfo.py index 481bdb298d0..2ac5419027d 100644 --- a/Orange/widgets/data/owdatainfo.py +++ b/Orange/widgets/data/owdatainfo.py @@ -54,7 +54,7 @@ def __init__(self): self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width()) self.layout().setSizeConstraint(QtWidgets.QLayout.SetFixedSize) - self.targets = "" + self.targets = "None" self.data_attributes = "" self.data_desc = None @@ -146,6 +146,8 @@ def update_size(): else: self.targets = "

Multi-target data

\n" + pack_table( (("Categorical", disc_class), ("Numeric", cont_class))) + else: + self.targets = "None" self.data_desc = dd = OrderedDict()