Changeset 7874:59452825c5ca in orange


Ignore:
Timestamp:
04/21/11 10:59:04 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
e4d9050570bd710f117c138ec70a5ddf28b2de53
Message:

Setting default buttons (clicked when pressing enter) on all widgets where applicable.

Location:
orange/OrangeWidgets/Evaluate
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Evaluate/OWConfusionMatrix.py

    r7087 r7874  
    7777        OWGUI.checkBox(box, self, "appendPredictions", "Append class predictions", callback = self.sendIf) 
    7878        OWGUI.checkBox(box, self, "appendProbabilities", "Append predicted class probabilities", callback = self.sendIf) 
    79         applyButton = OWGUI.button(box, self, "Commit", callback = self.sendData) 
     79        applyButton = OWGUI.button(box, self, "Commit", callback = self.sendData, default=True) 
    8080        autoApplyCB = OWGUI.checkBox(box, self, "autoApply", "Commit automatically") 
    8181        OWGUI.setStopper(self, applyButton, autoApplyCB, "selectionDirty", self.sendData) 
  • orange/OrangeWidgets/Evaluate/OWPredictions.py

    r7043 r7874  
    199199        self.outbox = OWGUI.widgetBox(self.controlArea, "Output") 
    200200         
    201         b = self.commitBtn = OWGUI.button(self.outbox, self, "Send Predictions", callback=self.sendpredictions) 
     201        b = self.commitBtn = OWGUI.button(self.outbox, self, "Send Predictions", callback=self.sendpredictions, default=True) 
    202202        cb = OWGUI.checkBox(self.outbox, self, 'sendOnChange', 'Send automatically') 
    203203        OWGUI.setStopper(self, b, cb, "changedFlag", callback=self.sendpredictions) 
Note: See TracChangeset for help on using the changeset viewer.