Ignore:
Timestamp:
Jul 27, 2010 4:37:01 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:
8898e963
Parents:
330c63b
Message:

working on guiframe and combobox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpanel.py

    r72a6bf8 r6450d8c  
    44import wx 
    55import wx.aui 
    6  
     6from sans.guicomm.events import NewPlotEvent, StatusEvent   
    77import basepage 
    88 
     
    212212        if state is not None: 
    213213            page_info = self.get_page_info(data=state.data) 
     214            if hasattr(state.data,"title"): 
     215                title = str(state.data.title.lstrip().rstrip()) 
     216                if title == "": 
     217                    title = str(state.data.name) 
     218            else: 
     219                title = str(state.data.name) 
    214220            for name, panel, type in self.opened_pages.values(): 
    215221                #Don't return any panel is the exact same page is created 
     
    227233                        self.manager.store_page(page=panel, data=state.data) 
    228234                    panel.reset_page(state=state) 
     235                    wx.PostEvent(self.parent, NewPlotEvent(plot=state.data, title=title)) 
    229236                    page_is_opened = True 
    230237                     
     
    235242                    self.manager.store_page(page=panel, data=state.data) 
    236243                    panel.reset_page(state=state) 
     244                    wx.PostEvent(self.parent, NewPlotEvent(plot=state.data, title=title)) 
    237245                     
    238246    def on_close_page(self, event): 
Note: See TracChangeset for help on using the changeset viewer.