Changeset 7868:5a5233199ab0 in orange


Ignore:
Timestamp:
04/20/11 17:15:05 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
1c80f7dc2f2e283c1943f437ae4abf06f1584d62
Message:

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

Location:
orange/OrangeWidgets
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Associate/OWAssociationRules.py

    r6933 r7868  
    4343        OWGUI.hSlider(box, self, 'maxRules', minValue=10000, maxValue=100000, step=10000, ticks=10000, debuggingEnabled = 0) 
    4444 
    45         OWGUI.button(self.space, self, "&Build rules", self.generateRules) 
     45        OWGUI.button(self.space, self, "&Build rules", self.generateRules, default=True) 
    4646 
    4747        OWGUI.rubber(self.controlArea) 
  • orange/OrangeWidgets/Associate/OWAssociationRulesTreeViewer.py

    r6538 r7868  
    8585 
    8686        cbSendAuto = OWGUI.checkBox(boxSettings, self, "autoSend", "Send immediately", box=None) 
    87         btnUpdate = OWGUI.button(boxSettings, self, "Send", self.sendData) 
     87        btnUpdate = OWGUI.button(boxSettings, self, "Send", self.sendData, default=True) 
    8888        OWGUI.setStopper(self, btnUpdate, cbSendAuto, "dataChanged", self.sendData) 
    8989         
  • orange/OrangeWidgets/Associate/OWAssociationRulesViewer.py

    r6933 r7868  
    248248        self.reportButton = OWGUI.button(bottom, self, "&Report", self.reportAndFinish, addToLayout=0, debuggingEnabled=0) 
    249249#        self.saveButton = OWGUI.button(bottom, self, "Save Rules", callback = self.saveRules, addToLayout=0) 
    250         commitButton = OWGUI.button(bottom, self, "Send Rules", callback = self.sendRules, addToLayout=0) 
     250        commitButton = OWGUI.button(bottom, self, "Send Rules", callback = self.sendRules, addToLayout=0, default=True) 
    251251        autoSend = OWGUI.checkBox(bottom, self, "autoSend", "Send rules automatically", disables=[(-1, commitButton)], addToLayout=0) 
    252252        autoSend.makeConsistent() 
  • orange/OrangeWidgets/Associate/OWItemsets.py

    r6933 r7868  
    4040        OWGUI.hSlider(box, self, 'maxRules', minValue=10000, maxValue=100000, step=10000, ticks=10000, debuggingEnabled = 0) 
    4141 
    42         OWGUI.button(self.space, self, "&Find Itemsets", self.findItemsets) 
     42        OWGUI.button(self.space, self, "&Find Itemsets", self.findItemsets, default=True) 
    4343 
    4444        OWGUI.rubber(self.controlArea) 
  • orange/OrangeWidgets/Associate/OWItemsetsExplorer.py

    r6713 r7868  
    6060 
    6161        cbSendAuto = OWGUI.checkBox(boxSettings, self, "autoSend", "Send immediately", box=None) 
    62         btnUpdate = OWGUI.button(boxSettings, self, "Send", self.sendData) 
     62        btnUpdate = OWGUI.button(boxSettings, self, "Send", self.sendData, default=True) 
    6363        OWGUI.setStopper(self, btnUpdate, cbSendAuto, "dataChanged", self.sendData) 
    6464 
  • orange/OrangeWidgets/Regression/OWPade.py

    r7039 r7868  
    8080        OWGUI.checkBox(box, self, "originalAsMeta", label="Original class attribute") 
    8181 
    82         self.applyButton = OWGUI.button(self.controlArea, self, "&Apply", callback=self.apply) 
     82        self.applyButton = OWGUI.button(self.controlArea, self, "&Apply", callback=self.apply, disabled=True, default=True) 
    8383         
    8484        self.contAttributes = [] 
  • orange/OrangeWidgets/Regression/OWRegressionTree.py

    r6985 r7868  
    6767        OWGUI.checkWithSpin(self.postPBox, self, "Pruning with m-estimate, m:", 0, 1000, 'PostMPCheck', 'PostMPVal') 
    6868 
    69         OWGUI.button(self.controlArea, self, "&Apply settings",callback=self.setLearner) 
     69        OWGUI.button(self.controlArea, self, "&Apply settings", callback=self.setLearner, default=True) 
    7070         
    7171        OWGUI.rubber(self.controlArea) 
  • orange/OrangeWidgets/Unsupervised/OWSOM.py

    r6877 r7868  
    7777##        self.alpha1=self.alpha1 
    7878##        self.alpha2=self.alpha2 
    79         OWGUI.button(self.controlArea, self,  "&Apply", callback=self.ApplySettings) 
     79        OWGUI.button(self.controlArea, self,  "&Apply", callback=self.ApplySettings, default=True) 
    8080 
    8181        OWGUI.rubber(self.controlArea) 
  • orange/OrangeWidgets/Unsupervised/OWSOMVisualizer.py

    r7088 r7868  
    10791079        b = OWGUI.widgetBox(self.controlArea, "Selection") 
    10801080        OWGUI.button(b, self, "&Invert selection", callback=self.invertSelection) 
    1081         button = OWGUI.button(b, self, "&Commit", callback=self.commit) 
     1081        button = OWGUI.button(b, self, "&Commit", callback=self.commit, default=True) 
    10821082        check = OWGUI.checkBox(b, self, "commitOnChange", "Commit on change") 
    10831083        OWGUI.setStopper(self, button, check, "selectionChanged", self.commit) 
  • orange/OrangeWidgets/Unsupervised/OWSaveDistanceFile.py

    r6877 r7868  
    3636         
    3737        fbox = OWGUI.widgetBox(self.controlArea, "Save") 
    38         self.save = OWGUI.button(fbox, self, "Save current data", callback = self.saveFile) 
     38        self.save = OWGUI.button(fbox, self, "Save current data", callback = self.saveFile, default=True) 
    3939        self.save.setDisabled(1) 
    4040         
Note: See TracChangeset for help on using the changeset viewer.