Skip to content

Commit

Permalink
Merge pull request #5223 from janezd/featurestatistics-color-on-top
Browse files Browse the repository at this point in the history
Feature Statistics: Move controls to the top
  • Loading branch information
ajdapretnar authored Feb 5, 2021
2 parents aa08139 + b241d23 commit ffa3df1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Orange/widgets/data/owfeaturestatistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ class Outputs:
reduced_data = Output('Reduced Data', Table, default=True)
statistics = Output('Statistics', Table)

want_main_area = True
want_control_area = False
buttons_area_orientation = Qt.Vertical

settingsHandler = DomainContextHandler()
Expand Down Expand Up @@ -738,20 +738,23 @@ def __init__(self):
# shortcut = QShortcut(QKeySequence('Ctrl+f'), self, self.filter_text.setFocus)
# shortcut.setWhatsThis('Filter variables by name')

box = gui.hBox(None, box=False)
box.setContentsMargins(0, 0, 0, 0)

self.color_var_model = DomainModel(
valid_types=(ContinuousVariable, DiscreteVariable),
placeholder='None',
)
box = gui.vBox(self.controlArea, 'Histogram')
self.cb_color_var = gui.comboBox(
box, master=self, value='color_var', model=self.color_var_model,
label='Color:', orientation=Qt.Horizontal, contentsLength=13,
searchable=True
)
self.cb_color_var.activated.connect(self.__color_var_changed)

gui.rubber(self.controlArea)
gui.auto_send(self.buttonsArea, self, "auto_commit")
gui.rubber(box)
gui.auto_send(box, self, "auto_commit", box=None)
self.mainArea.layout().addWidget(box)

self.info.set_input_summary(self.info.NoInput)
self.info.set_output_summary(self.info.NoOutput)
Expand Down

0 comments on commit ffa3df1

Please sign in to comment.