Changeset b8d7491 in sasview for guiframe


Ignore:
Timestamp:
May 15, 2009 11:43:26 AM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
05971e1
Parents:
7f7e5f1
Message:

prepared for add prview to sansview: panel menu disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r63c7d85d rb8d7491  
    297297        try: 
    298298            list = os.listdir(dir) 
    299             for item in list: 
     299            for item in reversed(list): 
    300300                toks = os.path.splitext(os.path.basename(item)) 
    301301                name = None 
     
    380380                                          MinSize(wx.Size(500,500)). 
    381381                                          Hide()) 
    382                  
    383382            else: 
    384383                self.panels[str(id)] = p 
     
    394393                                  Hide(). 
    395394                                  BestSize(wx.Size(550,600)). 
    396                                   MinSize(wx.Size(500,500))) 
    397                                 
    398  
     395                                  MinSize(wx.Size(500,500)))                  
    399396                 
    400397         
     
    493490        # plug-in panels and add them all. 
    494491         
    495         # Only add the panel menu if there is more than one panel 
     492        # Only add the panel menu if there is more than two panels 
    496493        n_panels = 0 
    497494        for plug in self.plugins: 
     
    500497                n_panels += 1 
    501498        
    502         if n_panels>1: 
     499        if n_panels>2: 
    503500            viewmenu = wx.Menu() 
    504501            for plug in self.plugins: 
     
    518515                     
    519516                    viewmenu.AppendMenu(wx.NewId(), plug.sub_menu, plugmenu, plug.sub_menu) 
    520                  
    521517            menubar.Append(viewmenu, '&Panel') 
    522518 
     
    616612        from data_loader import plot_data 
    617613        path = self.choose_file() 
     614 
    618615        if path ==None: 
    619616            return 
Note: See TracChangeset for help on using the changeset viewer.