Ignore:
Timestamp:
Feb 23, 2011 2:36:11 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:
2ac5f09
Parents:
fdb5c19
Message:

add hide and show data panel menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/data_loader/data_loader.py

    r0348245 re75b5fa  
    5757        Load data 
    5858        """ 
     59        path = None 
    5960        if self._default_save_location == None: 
    6061            self._default_save_location = os.getcwd() 
     
    7273            if len(file_list) >= 0 and not(file_list[0]is None): 
    7374                self._default_save_location = os.path.dirname(file_list[0]) 
     75                path = self._default_save_location 
    7476        dlg.Destroy() 
    7577         
    76         if not file_list or file_list[0] is None: 
     78        if path is None or not file_list or file_list[0] is None: 
    7779            return 
    7880        self.get_data(file_list) 
    79         self.parent.show_data_panel(event=None) 
     81         
    8082         
    8183    def can_load_data(self): 
     
    9092        Load entire folder 
    9193        """ 
     94        path = None 
    9295        if self._default_save_location == None: 
    9396            self._default_save_location = os.getcwd() 
     
    105108        file_list = self.get_file_path(path) 
    106109        self.get_data(file_list) 
    107         self.parent.show_data_panel(event=None) 
    108     
    109     
     110         
    110111    def load_error(self, error=None): 
    111112        """ 
Note: See TracChangeset for help on using the changeset viewer.