Skip to content

Commit

Permalink
[FIX] Change learner name on output when name changed in the field an…
Browse files Browse the repository at this point in the history
…d auto apply checked.
  • Loading branch information
PrimozGodec committed Jul 13, 2016
1 parent 7a6c034 commit 1008ae0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Orange/widgets/utils/owlearnerwidget.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from PyQt4.QtCore import QTimer
from PyQt4.QtCore import QTimer, Qt

from Orange.classification.base_classification import LearnerClassification
from Orange.data import Table
Expand Down Expand Up @@ -225,7 +225,9 @@ def add_main_layout(self):

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

def add_bottom_buttons(self):
box = gui.hBox(self.controlArea, True)
Expand Down

0 comments on commit 1008ae0

Please sign in to comment.