Changeset 3502:8034275168e7 in orange


Ignore:
Timestamp:
04/06/07 09:20:08 (7 years ago)
Author:
Gregor <Gregor@…>
Branch:
default
Convert:
dd7ebaf6aceaf185ff295c10051996559660719d
Message:
  • information -> warning
  • ...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWBaseWidget.py

    r3497 r3502  
    8787        self._guiElements = []      # used for automatic widget debugging 
    8888        self._useContexts = 1       # do you want to use contexts 
    89         self._owInfo = 1 
    90         self._owWarning = 1 
    91         self._owError = 1 
     89        self._owInfo = 1            # currently disabled !!! 
     90        self._owWarning = 1         # do we want to see warnings 
     91        self._owError = 1           # do we want to see errors 
     92        self._owShowStatus = 0      # do we want to see warnings and errors in status bar area of the widget 
    9293 
    9394        # do we want to save widget position and restore it on next load 
     
    541542        self.startTime = time.time() 
    542543        self.setCaption(self.captionTitle + " (0% complete)") 
    543         if self.progressBarHandler: self.progressBarHandler(self, -1) 
     544        if self.progressBarHandler: 
     545            self.progressBarHandler(self, -1) 
    544546 
    545547    def progressBarSet(self, value): 
     
    620622 
    621623    def information(self, id = 0, text = None): 
    622         self.setState("Info", id, text) 
     624        #self.setState("Info", id, text) 
     625        self.setState("Warning", id, text)      # if we want information just set warning 
    623626 
    624627    def warning(self, id = 0, text = ""): 
     
    649652            if self.widgetStateHandler: 
    650653                self.widgetStateHandler() 
    651             elif text and stateType != "Info": 
     654            elif text: # and stateType != "Info": 
    652655                self.printEvent(stateType + " - " + text) 
    653             qApp.processEvents() 
     656            #qApp.processEvents() 
     657        return changed 
    654658 
    655659    def synchronizeContexts(self): 
     
    726730                    widget.setOn(not widget.isOn()) 
    727731                else: 
    728                     newValue = "Pressed button %s" % (str(self.caption())) 
     732                    newValue = "Pressed button %s" % (str(widget.text()).strip()) 
    729733            elif elementType == "listBox": 
    730734                elementType, widget, value, callback = self._guiElements[index] 
Note: See TracChangeset for help on using the changeset viewer.