Changeset ecc85443 in sasview for guiframe/panel_base.py


Ignore:
Timestamp:
Mar 28, 2011 10:37:34 AM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
4b5bd73
Parents:
e52865f
Message:

update toolbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/panel_base.py

    rdf22224 recc85443  
    7070        self._print_flag = flag 
    7171        if self._manager is not None and self._manager.parent is not None: 
     72            self._manager.parent.panel_on_focus = self 
    7273            self._manager.parent.enable_print() 
    7374      
     
    8990        self._undo_flag = flag 
    9091        if self._manager is not None and self._manager.parent is not None: 
     92            self._manager.parent.panel_on_focus = self 
    9193            self._manager.parent.enable_undo() 
    9294       
     
    108110        self._redo_flag = flag 
    109111        if self._manager is not None and self._manager.parent is not None: 
     112            self._manager.parent.panel_on_focus = self 
    110113            self._manager.parent.enable_redo() 
    111114       
     
    127130        self._zoom_in_flag = flag 
    128131        if self._manager is not None and self._manager.parent is not None: 
     132            self._manager.parent.panel_on_focus = self 
    129133            self._manager.parent.enable_zoom_in() 
    130134        
     
    146150        self._zoom_out_flag = flag 
    147151        if self._manager is not None and self._manager.parent is not None: 
     152            self._manager.parent.panel_on_focus = self 
    148153            self._manager.parent.enable_zoom_out() 
    149154         
     
    165170        self._zoom_flag = flag 
    166171        if self._manager is not None and self._manager.parent is not None: 
     172            self._manager.parent.panel_on_focus = self 
    167173            self._manager.parent.enable_zoom() 
    168174      
     
    184190        self._bookmark_flag = flag 
    185191        if self._manager is not None and self._manager.parent is not None: 
     192            self._manager.parent.panel_on_focus = self 
    186193            self._manager.parent.enable_bookmark() 
    187194        
     
    203210        self._preview_flag = flag 
    204211        if self._manager is not None and self._manager.parent is not None: 
     212            self._manager.parent.panel_on_focus = self 
    205213            self._manager.parent.enable_preview() 
    206214        
     
    222230        self._save_flag = flag 
    223231        if self._manager is not None and self._manager.parent is not None: 
     232            self._manager.parent.panel_on_focus = self 
    224233            self._manager.parent.enable_save() 
    225234 
     
    241250        self._drag_flag = flag 
    242251        if self._manager is not None and self._manager.parent is not None: 
     252            self._manager.parent.panel_on_focus = self 
    243253            self._manager.parent.enable_drag() 
    244254        
     
    260270        self._reset_flag = flag 
    261271        if self._manager is not None and self._manager.parent is not None: 
     272            self._manager.parent.panel_on_focus = self 
    262273            self._manager.parent.enable_reset() 
    263274       
Note: See TracChangeset for help on using the changeset viewer.