Skip to content

Commit e925d51

Browse files
authored
Merge pull request #4568 from PrimozGodec/remove-maxcontent-length
Remove maximumContentsLength
2 parents 3be2d2c + 2c14352 commit e925d51

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Orange/widgets/evaluate/owtestlearners.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def __init__(self):
243243
ibox = gui.indentedBox(rbox)
244244
gui.comboBox(
245245
ibox, self, "n_folds", label="Number of folds: ",
246-
items=[str(x) for x in self.NFolds], maximumContentsLength=3,
246+
items=[str(x) for x in self.NFolds],
247247
orientation=Qt.Horizontal, callback=self.kfold_changed)
248248
gui.checkBox(
249249
ibox, self, "cv_stratified", "Stratified",
@@ -260,13 +260,14 @@ def __init__(self):
260260
ibox = gui.indentedBox(rbox)
261261
gui.comboBox(
262262
ibox, self, "n_repeats", label="Repeat train/test: ",
263-
items=[str(x) for x in self.NRepeats], maximumContentsLength=3,
264-
orientation=Qt.Horizontal, callback=self.shuffle_split_changed)
263+
items=[str(x) for x in self.NRepeats], orientation=Qt.Horizontal,
264+
callback=self.shuffle_split_changed
265+
)
265266
gui.comboBox(
266267
ibox, self, "sample_size", label="Training set size: ",
267268
items=["{} %".format(x) for x in self.SampleSizes],
268-
maximumContentsLength=5, orientation=Qt.Horizontal,
269-
callback=self.shuffle_split_changed)
269+
orientation=Qt.Horizontal, callback=self.shuffle_split_changed
270+
)
270271
gui.checkBox(
271272
ibox, self, "shuffle_stratified", "Stratified",
272273
callback=self.shuffle_split_changed)

Orange/widgets/unsupervised/owsom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def __init__(self):
264264

265265
box = gui.vBox(self.controlArea, "Color")
266266
gui.comboBox(
267-
box, self, "attr_color", maximumContentsLength=15,
267+
box, self, "attr_color",
268268
callback=self.on_attr_color_change,
269269
model=DomainModel(placeholder="(Same color)",
270270
valid_types=DomainModel.PRIMITIVE))

Orange/widgets/visualize/owheatmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def _():
269269

270270
cluster_box = gui.vBox(self.controlArea, "Clustering")
271271
# Row clustering
272-
self.row_cluster_cb = cb = ComboBox(maximumContentsLength=14)
272+
self.row_cluster_cb = cb = ComboBox()
273273
cb.setModel(create_list_model(ClusteringModelData, self))
274274
cbselect(cb, self.row_clustering, ClusteringRole)
275275
self.connect_control(
@@ -281,7 +281,7 @@ def _(idx, cb=cb):
281281
self.set_row_clustering(cb.itemData(idx, ClusteringRole))
282282

283283
# Column clustering
284-
self.col_cluster_cb = cb = ComboBox(maximumContentsLength=14)
284+
self.col_cluster_cb = cb = ComboBox()
285285
cb.setModel(create_list_model(ClusteringModelData, self))
286286
cbselect(cb, self.col_clustering, ClusteringRole)
287287
self.connect_control(

0 commit comments

Comments
 (0)