Ignore:
Timestamp:
11/26/13 14:50:48 (5 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Initialize the SchemeNode state messages on widget initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/scheme/node.py

    r11614 r11773  
    194194                        fget=tool_tip) 
    195195 
     196    #: The node's state message has changed 
     197    state_message_changed = Signal(UserMessage) 
     198 
    196199    def set_state_message(self, message): 
    197200        """ 
     
    203206 
    204207        self.__state_messages[message.message_id] = message 
    205  
    206208        self.state_message_changed.emit(message) 
    207209 
    208     #: The node's state message has changed 
    209     state_message_changed = Signal(UserMessage) 
     210    def state_messages(self): 
     211        """ 
     212        Return a list of all state messages. 
     213        """ 
     214        return self.__state_messages.values() 
    210215 
    211216    def __str__(self): 
Note: See TracChangeset for help on using the changeset viewer.