Changeset 11417:b5bc81bd43ed in orange


Ignore:
Timestamp:
03/18/13 14:34:30 (13 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Update the opened tabs in ToolBox widget when setting the exclusive property.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/gui/toolbox.py

    r11366 r11417  
    230230            self.__exclusive = exclusive 
    231231            self.__tabActionGroup.setExclusive(exclusive) 
     232            checked = self.__tabActionGroup.checkedAction() 
     233            # Trigger/toggle remaining open pages 
     234            if exclusive and checked is not None: 
     235                for page in self.__pages: 
     236                    if checked != page.action and page.action.isChecked(): 
     237                        page.action.trigger() 
    232238 
    233239    def exclusive(self): 
Note: See TracChangeset for help on using the changeset viewer.