orangecontrib-earth / orangecontrib / earth / widgets /

Diff from to


     def __init__(self, parent=None, signalManager=None,
         OWWidget.__init__(self, parent, signalManager, title,
-                          wantMainArea=False)
+                          wantMainArea=False, resizingEnabled=False)
  = "Earth Learner" = 1
                        tooltip="Name for the learner/predictor")
         box = OWGUI.widgetBox(self.controlArea, "Forward Pass", addSpace=True)
-        OWGUI.spin(box, self, "degree", 1, 3, step=1,
-                   label="Max. term degree",
+        form = QFormLayout(
+            labelAlignment=Qt.AlignLeft, formAlignment=Qt.AlignLeft,
+            fieldGrowthPolicy=QFormLayout.AllNonFixedFieldsGrow)
+        box.layout().addLayout(form)
+        b1 = OWGUI.widgetBox(box, "")
+        OWGUI.spin(b1, self, "degree", 1, 3, step=1,
                    tooltip="Maximum degree of the terms derived "
                            "(number of hinge functions).")
-        s = OWGUI.spin(box, self, "terms", 1, 200, step=1,
-                       label="Max. terms",
+        b2 = OWGUI.widgetBox(box, "")
+        s = OWGUI.spin(b2, self, "terms", 1, 200, step=1,
                        tooltip="Maximum number of terms derived in the "
                                "forward pass.")
+        form.addRow("Max. term degree", b1)
+        form.addRow("Max. terms", b2)
         box = OWGUI.widgetBox(self.controlArea, "Pruning Pass", addSpace=True)
         OWGUI.doubleSpin(box, self, "penalty", min=0.0, max=10.0, step=0.25,
                    label="Knot penalty")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.