Skip to content

Commit

Permalink
Widget minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Apr 30, 2021
1 parent 7eb09a6 commit fc13aca
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions orangecontrib/text/widgets/owscoredocuments.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from orangewidget.settings import Setting
from Orange.widgets.utils.itemmodels import PyTableModel, TableModel
from AnyQt.QtWidgets import QTableView, QLineEdit, QHeaderView
from AnyQt.QtCore import Qt, QSortFilterProxyModel, QSize
from AnyQt.QtCore import Qt, QSortFilterProxyModel
from sklearn.metrics.pairwise import cosine_similarity

from orangecontrib.text import Corpus
Expand Down Expand Up @@ -187,8 +187,7 @@ def __init__(self):
super().__init__(
sortingEnabled=True,
editTriggers=QTableView.NoEditTriggers,
selectionBehavior=QTableView.SelectRows,
selectionMode=QTableView.ExtendedSelection,
selectionMode=QTableView.NoSelection,
cornerButtonEnabled=False,
)
self.setItemDelegate(gui.ColoredBarItemDelegate(self))
Expand Down Expand Up @@ -288,7 +287,7 @@ def __init__(self):
self.scores = {}

def _setup_control_area(self) -> None:
box = gui.widgetBox(self.controlArea, "Word scoring")
box = gui.widgetBox(self.controlArea, "Word Scoring Methods")
for value, (n, _, tt) in SCORING_METHODS.items():
b = gui.hBox(box, margin=0)
gui.checkBox(
Expand All @@ -309,12 +308,11 @@ def _setup_control_area(self) -> None:
callback=self.__setting_changed,
)

box = gui.widgetBox(self.controlArea, "Aggregate scores")
box = gui.widgetBox(self.controlArea, "Aggregation")
gui.comboBox(
box,
self,
"aggregation",
searchable=True,
items=[n for n in AGGREGATIONS],
callback=self.__setting_changed,
)
Expand Down

0 comments on commit fc13aca

Please sign in to comment.