Skip to content

Commit

Permalink
Show None when no target variables
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazZupan committed Aug 5, 2018
1 parent fbee4d9 commit 3512bad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Orange/widgets/data/owdatainfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -146,6 +146,8 @@ def update_size():
else:
self.targets = "<p>Multi-target data</p>\n" + pack_table(
(("Categorical", disc_class), ("Numeric", cont_class)))
else:
self.targets = "None"

self.data_desc = dd = OrderedDict()

Expand Down

0 comments on commit 3512bad

Please sign in to comment.