Skip to content

Commit

Permalink
Merge pull request #1453 from PrimozGodec/base_learner
Browse files Browse the repository at this point in the history
[FIX] OWBaseLearner: Learner name is changed on output when user changes it and auto apply selected
  • Loading branch information
lanzagar authored Jul 13, 2016
2 parents d0d9b84 + 1008ae0 commit e57cbeb
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 e57cbeb

Please sign in to comment.