Skip to content

Commit d8d9f21

Browse files
authored
Merge pull request #4447 from PrimozGodec/search-combo-box
[ENH] Scatter Plot: Replace combo box with search combo box
2 parents 0ff63fa + a8ec6e1 commit d8d9f21

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Orange/widgets/utils/plot/owplotgui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ def _combo(self, widget, value, label, cb_name, items=(), model=None):
695695
callback=self._get_callback(cb_name, self._master),
696696
orientation=Qt.Horizontal,
697697
sendSelectedValue=True, contentsLength=12,
698-
labelWidth=50)
698+
labelWidth=50, searchable=True)
699699

700700
def color_value_combo(self, widget, label="Color: "):
701701
"""Creates a combo box that controls point color"""

Orange/widgets/visualize/owscatterplot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,13 @@ def _add_controls_axis(self):
282282
self.cb_attr_x = gui.comboBox(
283283
self.attr_box, self, "attr_x", label="Axis x:",
284284
callback=self.set_attr_from_combo,
285-
model=self.xy_model, **common_options)
285+
model=self.xy_model, **common_options,
286+
searchable=True)
286287
self.cb_attr_y = gui.comboBox(
287288
self.attr_box, self, "attr_y", label="Axis y:",
288289
callback=self.set_attr_from_combo,
289-
model=self.xy_model, **common_options)
290+
model=self.xy_model, **common_options,
291+
searchable=True)
290292
vizrank_box = gui.hBox(self.attr_box)
291293
self.vizrank, self.vizrank_button = ScatterPlotVizRank.add_vizrank(
292294
vizrank_box, self, "Find Informative Projections", self.set_attr)

requirements-gui.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
orange-canvas-core>=0.1.9,<0.2a
2-
orange-widget-base>=4.4.0
2+
orange-widget-base>=4.5.0
33

44
# PyQt4/PyQt5 compatibility
55
AnyQt>=0.0.8

0 commit comments

Comments
 (0)