Ignore:
Timestamp:
Mar 10, 2011 6:09:46 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:
ae4ade7
Parents:
00b76931
Message:

working on 1d2d

File:
1 edited

Legend:

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

    r00b76931 r2bdb52b  
    101101        return False 
    102102     
    103     def create_panel_helper(self, new_panel, data, group_id): 
     103    def create_panel_helper(self, new_panel, data, group_id, title=None): 
    104104        """ 
    105105        """ 
     
    108108        new_panel.set_manager(self) 
    109109        new_panel.group_id = group_id 
    110         title = data.title 
     110        if title is None: 
     111            title = data.title 
    111112        new_panel.window_caption = title 
    112         new_panel.window_name = title 
     113        new_panel.window_name = data.title 
    113114        event_id = self.parent.popup_panel(new_panel) 
    114115        #remove the default item in the menu 
     
    208209            if event.action.lower() == 'delete': 
    209210                return self.delete_panel(group_id) 
     211        title = None 
     212        if hasattr(event, 'title'): 
     213            title = event.title 
    210214                 
    211215        data = event.plot 
     
    225229            else: 
    226230                new_panel = self.create_2d_panel(data, group_id) 
    227             self.create_panel_helper(new_panel, data, group_id) 
     231            self.create_panel_helper(new_panel, data, group_id, title) 
    228232             
    229233        return 
Note: See TracChangeset for help on using the changeset viewer.