Changeset 570cb96 in sasview for guiframe


Ignore:
Timestamp:
Apr 20, 2011 12:55:53 PM (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:
3554fd39
Parents:
39e5025f
Message:

update menu item according to discussion

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r34e3ab3 r570cb96  
    784784            self._data_panel_menu.SetText('Data Explorer ON') 
    785785        self._view_menu.AppendSeparator() 
    786         style1 = self.__gui_style & GUIFRAME.MULTIPLE_APPLICATIONS 
    787         if style1 == GUIFRAME.MULTIPLE_APPLICATIONS: 
    788             id = wx.NewId() 
     786        id = wx.NewId() 
     787        style1 = self.__gui_style & GUIFRAME.TOOL_ON 
     788        if style1 == GUIFRAME.TOOL_ON: 
    789789            self._toolbar_menu = self._view_menu.Append(id,'&Show Toolbar', '') 
    790             wx.EVT_MENU(self, id, self._on_hide_toolbar) 
     790        else: 
     791            self._toolbar_menu = self._view_menu.Append(id,'&Hide Toolbar', '') 
     792        wx.EVT_MENU(self, id, self._on_hide_toolbar) 
    791793        self._menubar.Append(self._view_menu, '&View') 
    792794         
  • guiframe/local_perspectives/data_loader/data_loader.py

    r84e5533 r570cb96  
    4646        self._data_menu = None  
    4747         
    48     def populate_menu(self, parent): 
    49         """ 
    50         """ 
    51          # Add menu data  
     48    def populate_file_menu(self): 
     49        """ 
     50        get a menu item and append it under file menu of the application 
     51        add load file menu item and load folder item 
     52        """ 
     53        #menu for data files 
     54        menu_list = [] 
     55        data_file_hint = "load one or more data in the application" 
     56        menu_list = [('&Load Data File(s)', data_file_hint, self._load_data)] 
     57        gui_style = self.parent.get_style() 
     58        style = gui_style & GUIFRAME.MULTIPLE_APPLICATIONS 
     59        style1 = gui_style & GUIFRAME.DATALOADER_ON 
     60        if style == GUIFRAME.MULTIPLE_APPLICATIONS: 
     61            #menu for data from folder 
     62            data_folder_hint = "load multiple data in the application" 
     63            menu_list.append(('&Load Data Folder', data_folder_hint,  
     64                              self._load_folder)) 
     65        return menu_list 
     66     
     67    def unused_populate_menu(self, parent): 
     68        """ 
     69        """ 
     70        # Add menu data  
    5271        self._data_menu = wx.Menu() 
    5372        #menu for data files 
Note: See TracChangeset for help on using the changeset viewer.