Changeset e99126a in sasview


Ignore:
Timestamp:
Aug 2, 2010 2:55:06 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:
4f81342
Parents:
023c8e2
Message:

working on guiframe using theory model

Location:
theoryview/perspectives/theory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • theoryview/perspectives/theory/model_panel.py

    r3c44c66 re99126a  
    367367        Receive  a list of data from gui_manager to plot theory 
    368368        """ 
    369         if list==[]: 
    370             msg = "Please select data for Theory perspective.\n" 
    371             dial = wx.MessageDialog(None, msg, 'Error Loading File',  
    372                                     wx.OK | wx.ICON_EXCLAMATION) 
    373             dial.ShowModal()  
    374             return 
    375         else : 
    376             msg = "Theory perspective does not allow Data.\n" 
    377             msg += "Please import theory or go the theory perspective.\n" 
    378             dial = wx.MessageDialog(None, msg, 'Error Loading File',  
    379                                     wx.OK | wx.ICON_EXCLAMATION) 
    380             dial.ShowModal()  
    381       
     369        pass 
     370       
    382371    def reset_page(self, state): 
    383372        """ 
  • theoryview/perspectives/theory/theory.py

    r74755ff re99126a  
    445445                wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 
    446446                             title= str(title))) 
     447            self.parent.set_created_data(data_list=[(new_plot, None)]) 
     448          
    447449            msg = "Plot 1D  complete !" 
    448450            wx.PostEvent( self.parent, StatusEvent( status= msg , type="stop" )) 
     
    495497            theory.xmin= data.xmin 
    496498            theory.xmax= data.xmax 
    497         
     499             
     500        self.parent.set_created_data(data_list=[(theory, None)]) 
     501      
    498502        ## plot 
    499503        wx.PostEvent(self.parent, NewPlotEvent(plot=theory, 
Note: See TracChangeset for help on using the changeset viewer.