Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/canvas/scene.py

    r11369 r11411  
    100100 
    101101        self.__channel_names_visible = True 
     102        self.__node_animation_enabled = True 
    102103 
    103104        self.user_interaction_handler = None 
     
    217218        return self.__channel_names_visible 
    218219 
     220    def set_node_animation_enabled(self, enabled): 
     221        if self.__node_animation_enabled != enabled: 
     222            self.__node_animation_enabled = enabled 
     223 
     224            for node in self.__node_items: 
     225                node.setAnimationEnabled(enabled) 
     226 
    219227    def add_node_item(self, item): 
    220228        """Add a :class:`NodeItem` instance to the scene. 
     
    301309            item.setWidgetCategory(category_desc) 
    302310 
     311        item.setAnimationEnabled(self.__node_animation_enabled) 
    303312        return item 
    304313 
Note: See TracChangeset for help on using the changeset viewer.