Skip to content

Commit 1008ae0

Browse files
committed
[FIX] Change learner name on output when name changed in the field and auto apply checked.
1 parent 7a6c034 commit 1008ae0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Orange/widgets/utils/owlearnerwidget.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from PyQt4.QtCore import QTimer
2+
from PyQt4.QtCore import QTimer, Qt
33

44
from Orange.classification.base_classification import LearnerClassification
55
from Orange.data import Table
@@ -225,7 +225,9 @@ def add_main_layout(self):
225225

226226
def add_learner_name_widget(self):
227227
gui.lineEdit(self.controlArea, self, 'learner_name', box='Name',
228-
tooltip='The name will identify this model in other widgets')
228+
tooltip='The name will identify this model in other widgets',
229+
orientation=Qt.Horizontal,
230+
callback=lambda: self.apply())
229231

230232
def add_bottom_buttons(self):
231233
box = gui.hBox(self.controlArea, True)

0 commit comments

Comments
 (0)