From 1008ae015a33504a05c1e475c58ab2f97aa05207 Mon Sep 17 00:00:00 2001
From: PrimozGodec
Date: Wed, 13 Jul 2016 13:16:08 +0200
Subject: [PATCH] [FIX] Change learner name on output when name changed in the
field and auto apply checked.
---
Orange/widgets/utils/owlearnerwidget.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Orange/widgets/utils/owlearnerwidget.py b/Orange/widgets/utils/owlearnerwidget.py
index e28731c5e92..dcdb5c3cad4 100644
--- a/Orange/widgets/utils/owlearnerwidget.py
+++ b/Orange/widgets/utils/owlearnerwidget.py
@@ -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
@@ -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)