Skip to content

Commit

Permalink
Word List: Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed Mar 30, 2021
1 parent b32dbc1 commit c641c0b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions orangecontrib/text/widgets/owwordlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def generate_word_list_name(taken_names: List[str]) -> str:

class UpdateRules:
INTERSECT, UNION, INPUT, LIBRARY = range(4)
ITEMS = ["Intersection", "Union", "Only Input", "Ignore Input"]
ITEMS = ["Intersection", "Union", "Only input", "Ignore input"]

@staticmethod
def update(model: PyListModel, lib_words: List, in_words: List, rule: int):
Expand Down Expand Up @@ -157,20 +157,14 @@ class Outputs:
words = Output("Words", Table)

class Warning(OWWidget.Warning):
no_string_vars = Msg("Input 'Words' needs at least one Text variable.")
no_string_vars = Msg("Input needs at least one Text variable.")

NONE, CACHED, LIBRARY = range(3) # library list modification types

want_main_area = False
resizing_enabled = True

settingsHandler = DomainContextHandler()
# word_list_library: List[Dict] = Setting([
# {"name": "Untitled",
# "words": ["foo", "bar", "baz"]},
# {"name": "Word list",
# "words": ["word 1", "word 2", "word 3", "word 4"]},
# ])
word_list_library: List[Dict] = Setting([
{"name": WordList.generate_word_list_name([]), "words": []},
])
Expand Down

0 comments on commit c641c0b

Please sign in to comment.